VirtualBox

Changeset 59676 in vbox


Ignore:
Timestamp:
Feb 15, 2016 12:14:31 PM (9 years ago)
Author:
vboxsync
Message:

RTCrX509CertPaths: Don't use ValidTime unless it's actually set.

File:
1 edited

Legend:

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

    r59432 r59676  
    20062006     */
    20072007    AssertCompile(sizeof(pThis->szTmp) >= 36 * 3);
    2008     if (!RTCrX509Validity_IsValidAtTimeSpec(&pNode->pCert->TbsCertificate.Validity, &pThis->ValidTime))
     2008    if (   (pThis->fFlags & RTCRX509CERTPATHSINT_F_VALID_TIME)
     2009        && !RTCrX509Validity_IsValidAtTimeSpec(&pNode->pCert->TbsCertificate.Validity, &pThis->ValidTime))
    20092010        return rtCrX509CpvFailed(pThis, VERR_CR_X509_CPV_NOT_VALID_AT_TIME,
    20102011                                 "Certificate is not valid (ValidTime=%s Validity=[%s...%s])",
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