VirtualBox

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


Ignore:
Timestamp:
Feb 15, 2016 1:08:53 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105535
Message:

RTCrX509CertPathsSetValidTime[Spec]: Allow setting/changing the ValidTime after building paths as it's only used while validating the paths. This allows for first validating without valid-time constraints, then repeating with a valid-time.

File:
1 edited

Legend:

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

    r59676 r59678  
    464464    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    465465    AssertReturn(pThis->u32Magic == RTCRX509CERTPATHSINT_MAGIC, VERR_INVALID_HANDLE);
    466     AssertReturn(pThis->pRoot == NULL, VERR_WRONG_ORDER);
     466
     467    /* Allow this after building paths, as it's only used during verification. */
    467468
    468469    if (pTime)
     
    483484    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    484485    AssertReturn(pThis->u32Magic == RTCRX509CERTPATHSINT_MAGIC, VERR_INVALID_HANDLE);
    485     AssertReturn(pThis->pRoot == NULL, VERR_WRONG_ORDER);
     486
     487    /* Allow this after building paths, as it's only used during verification. */
    486488
    487489    if (pTimeSpec)
Note: See TracChangeset for help on using the changeset viewer.

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