VirtualBox

Changeset 74723 in vbox for trunk


Ignore:
Timestamp:
Oct 9, 2018 5:46:09 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/ssl: deal with relatively old OpenSSL 1.1.0 releases which don't have the SSL_CTX protocol version getters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/ssl-openssl.cpp

    r74342 r74723  
    111111                /* Help with above aim. */
    112112# if OPENSSL_VERSION_NUMBER >= 0x10100000
     113#  ifndef SSL_CTX_get_min_proto_version
     114/* Some older OpenSSL 1.1.0 releases lack the getters, officially they were
     115 * added with 1.1.1 but someone cherry picked them, just maybe too late. */
     116#   define SSL_CTX_get_min_proto_version(ctx) (0)
     117#  endif
    113118                if (SSL_CTX_get_min_proto_version(pThis->pCtx) < TLS1_VERSION)
    114119                    SSL_CTX_set_min_proto_version(pThis->pCtx, TLS1_VERSION);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette