VirtualBox

Changeset 104755 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
May 22, 2024 11:32:11 AM (7 months ago)
Author:
vboxsync
Message:

IPRT: RTCrX509Certificate_GenerateSelfSignedRsa build fix for OpenSSL 1.0.x. bugref:10310

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/x509-create-sign.cpp

    r104745 r104755  
    122122
    123123        /* The certificate is valid from now and the specifice number of seconds forwards: */
    124 # if OPENSSL_VERSION_NUMBER >= 0x30000000
     124# if OPENSSL_VERSION_NUMBER >= 0x1010000f
    125125        AssertStmt(X509_gmtime_adj(X509_getm_notBefore(pNewCert), 0),
    126126                   rc = RTErrInfoSet(pErrInfo, VERR_GENERAL_FAILURE, "X509_gmtime_adj/before failed"));
     
    170170                 */
    171171                /* The certificate (not security sensitive). */
     172# if OPENSSL_VERSION_NUMBER >= 0x1010000f
    172173                BIO * const pCertBio = BIO_new(BIO_s_mem());
     174# else
     175                BIO * const pCertBio = BIO_new(BIO_s_mem());
     176# endif
    173177                if (pCertBio)
    174178                {
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