12 #ifndef _CERTFN_DEFINED
14 #define _CERTFN_DEFINED
47 *valueLength )
void *value,
80 IN_FLAGS( CHECKDN )
const int checkFlags,
95 #ifdef USE_CERT_DNSTRING
131 ATTRIBUTE_PTR *findNextFieldInstance(
const ATTRIBUTE_PTR *attributePtr );
185 IN_ENUM( ATTRIBUTE_PROPERTY ) \
189 IN_ENUM( ATTRIBUTE_PROPERTY ) \
317 IN_BUFFER( dataLength )
const void *data,
417 int sizeofRtcsRequestEntry(
INOUT VALIDITY_INFO *rtcsEntry );
420 INOUT_PTR VALIDITY_INFO **listHeadPtrPtr,
424 const VALIDITY_INFO *rtcsEntry );
426 int sizeofRtcsResponseEntry(
INOUT VALIDITY_INFO *rtcsEntry,
427 const BOOLEAN isFullResponse );
430 INOUT_PTR VALIDITY_INFO **listHeadPtrPtr,
432 const BOOLEAN isFullResponse );
435 const VALIDITY_INFO *rtcsEntry,
436 const BOOLEAN isFullResponse );
441 int addValidityEntry(
INOUT_PTR VALIDITY_INFO **listHeadPtrPtr,
443 IN_BUFFER( valueLength )
const void *value,
446 int prepareValidityEntries(
IN_OPT const VALIDITY_INFO *listPtr,
453 void deleteValidityEntries(
INOUT_PTR VALIDITY_INFO **listHeadPtrPtr );
458 int copyValidityEntries(
INOUT_PTR VALIDITY_INFO **destListHeadPtrPtr,
459 const VALIDITY_INFO *srcListPtr );
480 int sizeofCRLentry(
INOUT REVOCATION_INFO *crlEntry );
483 INOUT_PTR REVOCATION_INFO **listHeadPtrPtr,
491 const REVOCATION_INFO *crlEntry );
493 int sizeofOcspRequestEntry(
INOUT REVOCATION_INFO *ocspEntry );
496 INOUT_PTR REVOCATION_INFO **listHeadPtrPtr,
500 const REVOCATION_INFO *ocspEntry );
502 int sizeofOcspResponseEntry(
INOUT REVOCATION_INFO *ocspEntry );
505 INOUT_PTR REVOCATION_INFO **listHeadPtrPtr,
509 const REVOCATION_INFO *ocspEntry,
510 const time_t entryTime );
515 int addRevocationEntry(
INOUT_PTR REVOCATION_INFO **listHeadPtrPtr,
518 IN_BUFFER( valueLength )
const void *value,
523 int prepareRevocationEntries(
INOUT_OPT REVOCATION_INFO *listPtr,
524 const time_t defaultTime,
532 void deleteRevocationEntries(
INOUT_PTR REVOCATION_INFO **listHeadPtrPtr );
537 int copyRevocationEntries(
INOUT_PTR REVOCATION_INFO **destListHeadPtrPtr,
538 const REVOCATION_INFO *srcListPtr );
573 int getKeyUsageFromExtKeyUsage(
const CERT_INFO *certInfoPtr,
580 int checkKeyUsage(
const CERT_INFO *certInfoPtr,
582 IN_FLAGS_Z( CRYPT_KEYUSAGE )
const int specificUsage,
585 const int complianceLevel,
593 #ifdef USE_CERTLEVEL_PKIX_FULL
595 int checkNameConstraints(
const CERT_INFO *subjectCertInfoPtr,
605 int checkPolicyConstraints(
const CERT_INFO *subjectCertInfoPtr,
608 IN_OPT const POLICY_INFO *policyInfo,
610 const BOOLEAN allowMappedPolicies,
616 #ifdef USE_CERTLEVEL_PKIX_PARTIAL
618 int checkPathConstraints(
const CERT_INFO *subjectCertInfoPtr,
663 int sizeofCertCollection(
const CERT_INFO *certInfoPtr,
728 const int cursorMoveType );
732 IN const int value );
763 const void *canonSerialNumber,
766 const void *serialNumber,
778 int textToOID(
IN_BUFFER( textOidLength )
const char *textOID,
780 const int textOidLength,
809 const BOOLEAN shortCircuitCheck,
830 time_t *getRevocationTimePtr(
const CERT_INFO *certInfoPtr );
832 ATTRIBUTE_PTR *findAttributeComponent(
const CERT_INFO *certInfoPtr,
872 IN_FLAGS( PRE_SET )
const int actions );
876 IN_FLAGS( PRE_CHECK )
const int actions,