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 (-2 / +2 lines)
Lines 347-353 init_context: Link Here
347
347
348
    const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
348
    const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
349
    if (!qcurves.isEmpty()) {
349
    if (!qcurves.isEmpty()) {
350
#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
350
#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(LIBRESSL_VERSION_NUMBER)
351
        // Set the curves to be used
351
        // Set the curves to be used
352
        if (q_SSLeay() >= 0x10002000L) {
352
        if (q_SSLeay() >= 0x10002000L) {
353
            // SSL_CTX_ctrl wants a non-const pointer as last argument,
353
            // SSL_CTX_ctrl wants a non-const pointer as last argument,
Lines 360-366 init_context: Link Here
360
                sslContext->errorCode = QSslError::UnspecifiedError;
360
                sslContext->errorCode = QSslError::UnspecifiedError;
361
            }
361
            }
362
        } else
362
        } else
363
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
363
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(LIBRESSL_VERSION_NUMBER)
364
        {
364
        {
365
            // specific curves requested, but not possible to set -> error
365
            // specific curves requested, but not possible to set -> error
366
            sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));
366
            sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));

Return to bug 562050