Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 562050 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/network/ssl/qsslcontext_openssl.cpp (-3 / +2 lines)
Lines 338-344 init_context: Link Here
338
338
339
    const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
339
    const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
340
    if (!qcurves.isEmpty()) {
340
    if (!qcurves.isEmpty()) {
341
#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
341
#if OPENSSL_VERSION_NUMBER >= 0x10002000L && defined(SSL_CTRL_SET_CURVES) && !defined(OPENSSL_NO_EC)
342
        // Set the curves to be used
342
        // Set the curves to be used
343
        if (q_SSLeay() >= 0x10002000L) {
343
        if (q_SSLeay() >= 0x10002000L) {
344
            // SSL_CTX_ctrl wants a non-const pointer as last argument,
344
            // SSL_CTX_ctrl wants a non-const pointer as last argument,
Lines 352-358 init_context: Link Here
352
                return sslContext;
352
                return sslContext;
353
            }
353
            }
354
        } else
354
        } else
355
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
355
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && defined(SSL_CTRL_SET_CURVES) && !defined(OPENSSL_NO_EC)
356
        {
356
        {
357
            // specific curves requested, but not possible to set -> error
357
            // specific curves requested, but not possible to set -> error
358
            sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));
358
            sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));
359
- 

Return to bug 562050