static void setField_NotAfter ( DecodedItem &item, const CssmData &fieldValue) { DecodedCert &cert = dynamic_cast<DecodedCert &>(item); NSS_Time &dstTime = cert.mCert.tbs.validity.notAfter; tbsSetCheck(dstTime.item.Data, fieldValue, sizeof(CSSM_X509_TIME), "NotAfter"); setField_TimeNSS(fieldValue, dstTime, cert.coder()); }
static void setField_NextUpdate ( DecodedItem &item, const CssmData &fieldValue) { DecodedCrl &crl = dynamic_cast<DecodedCrl &>(item); NSS_Time &dstTime = crl.mCrl.tbs.nextUpdate; tbsSetCheck(dstTime.item.Data, fieldValue, sizeof(CSSM_X509_TIME), "NotBefore"); setField_TimeNSS(fieldValue, dstTime, crl.coder()); }