VirtualBox

Changeset 63853 in vbox


Ignore:
Timestamp:
Sep 15, 2016 3:37:57 PM (8 years ago)
Author:
vboxsync
Message:

Runtime: fixes for OpenSSL 1.1

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/VBox/VBoxRTDeps.cpp

    r63831 r63853  
    7777    (PFNRT)i2d_X509,
    7878    (PFNRT)i2d_PublicKey,
    79 #if OPENSSL_VERSION_NUMBER < 0x10100000
     79#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
    8080    (PFNRT)RSA_generate_key,
    8181#endif
    8282    (PFNRT)RSA_generate_key_ex,
    83 #if OPENSSL_VERSION_NUMBER < 0x10100000
     83#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
    8484    (PFNRT)DH_generate_parameters,
    8585#endif
    8686    (PFNRT)DH_generate_parameters_ex,
    8787    (PFNRT)RAND_load_file,
    88 #if OPENSSL_VERSION_NUMBER < 0x10100000
     88#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
    8989    (PFNRT)CRYPTO_set_dynlock_create_callback,
    9090    (PFNRT)CRYPTO_set_dynlock_lock_callback,
     
    9797    (PFNRT)RTBldCfgRevision,
    9898    (PFNRT)SSL_free,
    99 #if OPENSSL_VERSION_NUMBER < 0x10100000
     99#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
    100100    (PFNRT)SSL_library_init,
    101101    (PFNRT)SSL_load_error_strings,
     
    104104    (PFNRT)SSL_CTX_use_certificate_file,
    105105    (PFNRT)SSLv23_method,
    106 #if OPENSSL_VERSION_NUMBER < 0x10100000
     106#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
    107107    (PFNRT)TLSv1_server_method,
    108108#endif
  • trunk/src/VBox/Runtime/common/crypto/pkix-verify.cpp

    r63831 r63853  
    124124                             "EVP_get_digestbyname failed on %s (%s)", pszAlogSn, pAlgorithm->szObjId);
    125125
    126 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     126# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
    127127
    128128    EVP_MD_CTX *pEvpMdCtx = EVP_MD_CTX_create();
     
    174174    EVP_MD_CTX_destroy(pEvpMdCtx);
    175175
    176 # else /* OPENSSL_VERSION_NUMBER < 0x1010000 */
     176# else /* OPENSSL_VERSION_NUMBER < 0x1010000 || defined(LIBRESSL_VERSION_NUMBER) */
    177177
    178178    /* Initialize the EVP message digest context. */
     
    219219    EVP_MD_CTX_cleanup(&EvpMdCtx);
    220220
    221 # endif /* OPENSSL_VERSION_NUMBER < 0x10100000 */
     221# endif /* OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) */
    222222
    223223    /*
     
    311311                             "EVP_get_digestbyname failed on %s (%s)", pszAlogSn, pszAlgObjId);
    312312
    313 # if OPENSSL_VERSION_NUMBER >= 0x10100000
     313# if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
    314314
    315315    /* Create an EVP public key. */
     
    371371        rcOssl = RTErrInfoSetF(pErrInfo, VERR_NO_MEMORY, "EVP_PKEY_new(%d) failed", iAlgoNid);
    372372
    373 # else /* OPENSSL_VERSION_NUMBER < 0x1010000 */
     373# else /* OPENSSL_VERSION_NUMBER < 0x1010000 || defined(LIBRESSL_VERSION_NUMBER) */
    374374
    375375    /* Create an EVP public key. */
     
    430430        rcOssl = RTErrInfoSetF(pErrInfo, VERR_NO_MEMORY, "EVP_PKEY_new(%d) failed", pEvpMdType->required_pkey_type[0]);
    431431
    432 # endif /* OPENSSL_VERSION_NUMBER < 0x1010000 */
     432# endif /* OPENSSL_VERSION_NUMBER < 0x1010000 || defined(LIBRESSL_VERSION_NUMBER) */
    433433
    434434    /*
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