- Timestamp:
- Jul 2, 2014 10:29:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/x509-certpaths.cpp
r51770 r51823 270 270 /** An object identifier initialized to anyPolicy. */ 271 271 RTASN1OBJID AnyPolicyObjId; 272 273 /** Temporary scratch space. */ 274 char szTmp[1024]; 272 275 } RTCRX509CERTPATHSINT; 273 276 typedef RTCRX509CERTPATHSINT *PRTCRX509CERTPATHSINT; … … 1963 1966 * 6.1.3.a.2 - Verify that the certificate is valid at the specified time. 1964 1967 */ 1968 AssertCompile(sizeof(pThis->szTmp) >= 36 * 3); 1965 1969 if (!RTCrX509Validity_IsValidAtTimeSpec(&pNode->pCert->TbsCertificate.Validity, &pThis->ValidTime)) 1966 return rtCrX509CpvFailed(pThis, VERR_CR_X509_CPV_NOT_VALID_AT_TIME, "Certificate is not valid"); 1970 return rtCrX509CpvFailed(pThis, VERR_CR_X509_CPV_NOT_VALID_AT_TIME, 1971 "Certificate is not valid (ValidTime=%s Validity=[%s...%s])", 1972 RTTimeSpecToString(&pThis->ValidTime, &pThis->szTmp[0], 36), 1973 RTTimeToString(&pNode->pCert->TbsCertificate.Validity.NotBefore.Time, &pThis->szTmp[36], 36), 1974 RTTimeToString(&pNode->pCert->TbsCertificate.Validity.NotAfter.Time, &pThis->szTmp[2*36], 36) ); 1967 1975 1968 1976 /*
Note:
See TracChangeset
for help on using the changeset viewer.