VirtualBox

Ignore:
Timestamp:
May 11, 2020 12:29:09 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/store: Fixed incorrect check for X.509 DER encoding in the openssl conversion functions. bugref:9699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/store.cpp

    r84230 r84253  
    343343                    break;
    344344
    345                 if (pCertCtx->fFlags & RTCRCERTCTX_F_ENC_X509_DER)
     345                if (   (pCertCtx->fFlags & RTCRCERTCTX_F_ENC_MASK) == RTCRCERTCTX_F_ENC_X509_DER
     346                    && pCertCtx->cbEncoded > 0)
    346347                {
    347348                    X509 *pOsslCert = NULL;
     
    398399                    break;
    399400
    400                 if (pCertCtx->fFlags & RTCRCERTCTX_F_ENC_X509_DER)
     401                if (   (pCertCtx->fFlags & RTCRCERTCTX_F_ENC_MASK) == RTCRCERTCTX_F_ENC_X509_DER
     402                    && pCertCtx->cbEncoded > 0)
    401403                {
    402404                    X509 *pOsslCert = NULL;
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