|
cryptlib
3.4.1
|
Go to the source code of this file.
Classes | |
| struct | SELECTION_INFO |
| struct | SELECTION_STATE |
| struct | CERT_CERT_INFO |
| struct | CERT_INFO |
Macros | |
| #define | MIN_ATTRIBUTE_SIZE 12 |
| #define | MAX_CHAINLENGTH 16 |
| #define | DEFAULT_SERIALNO_SIZE 8 |
| #define | SERIALNO_BUFSIZE 32 |
| #define | MAX_SERIALNO_SIZE 256 |
| #define | PKIUSER_AUTHENTICATOR_SIZE 12 |
| #define | PKIUSER_ENCR_AUTHENTICATOR_SIZE 32 |
| #define | ENCODING_FIFO_SIZE 10 |
| #define | MIN_CERT_TIME_VALUE ( ( 1996 - 1970 ) * 365 * 86400L ) |
| #define | CERT_FLAG_NONE 0x00 /* No flag */ |
| #define | CERT_FLAG_SELFSIGNED 0x01 /* Certificate is self-signed */ |
| #define | CERT_FLAG_SIGCHECKED 0x02 /* Signature has been checked */ |
| #define | CERT_FLAG_DATAONLY 0x04 /* Certificate is data-only (no context) */ |
| #define | CERT_FLAG_CRLENTRY 0x08 /* CRL is a standalone single entry */ |
| #define | CERT_FLAG_CERTCOLLECTION 0x10 /* Certificate chain is unordered collection */ |
| #define | CERT_FLAG_PATHKLUDGE 0x20 /* Certificate is a PKIX path kludge */ |
| #define | CERT_FLAG_MAX 0x3F /* Maximum possible flag value */ |
| #define | setErrorValues(locus, type) *errorLocus = ( locus ); *errorType = ( type ) |
| #define | CHECKKEY_FLAG_NONE 0x00 /* No specific checks */ |
| #define | CHECKKEY_FLAG_CA 0x01 /* Must be CA key */ |
| #define | CHECKKEY_FLAG_PRIVATEKEY 0x02 /* Check priv.key constraints */ |
| #define | CHECKKEY_FLAG_GENCHECK 0x04 /* General details check */ |
| #define | CHECKKEY_FLAG_MAX 0x07 /* Maximum possible flag value */ |
| #define | PRE_SET_NONE 0x0000 /* No setup actions */ |
| #define | PRE_SET_STANDARDATTR 0x0001 /* Set up standard extensions */ |
| #define | PRE_SET_ISSUERATTR 0x0002 /* Copy issuer attr.to subject */ |
| #define | PRE_SET_ISSUERDN 0x0004 /* Copy issuer DN to subject */ |
| #define | PRE_SET_VALIDITYPERIOD 0x0008 /* Constrain subj.val.to issuer val.*/ |
| #define | PRE_SET_VALINFO 0x0010 /* Set up validity information */ |
| #define | PRE_SET_REVINFO 0x0020 /* Set up revocation information */ |
| #define | PRE_SET_FLAG_NONE 0x0000 /* No setup actions */ |
| #define | PRE_SET_FLAG_MAX 0x003F /* Maximum possible flag value */ |
| #define | PRE_CHECK_NONE 0x0000 /* No check actions */ |
| #define | PRE_CHECK_SPKI 0x0001 /* SPKI present */ |
| #define | PRE_CHECK_DN 0x0002 /* Subject DN present */ |
| #define | PRE_CHECK_DN_PARTIAL 0x0004 /* Partial subject DN present */ |
| #define | PRE_CHECK_ISSUERDN 0x0008 /* Issuer DN present */ |
| #define | PRE_CHECK_ISSUERCERTDN 0x0010 /* Issuer cert DN == subj.issuer DN */ |
| #define | PRE_CHECK_NONSELFSIGNED_DN 0x0020 /* Issuer DN != subject DN */ |
| #define | PRE_CHECK_SERIALNO 0x0040 /* SerialNo present */ |
| #define | PRE_CHECK_VALENTRIES 0x0080 /* Validity entries present */ |
| #define | PRE_CHECK_REVENTRIES 0x0100 /* Revocation entries present */ |
| #define | PRE_CHECK_FLAG_NONE 0x0000 /* No check actions */ |
| #define | PRE_CHECK_FLAG_MAX 0x01FF /* Maximum possible flag value */ |
| #define | PRE_FLAG_NONE 0x0000 /* No special control options */ |
| #define | PRE_FLAG_DN_IN_ISSUERCERT 0x0001/* Issuer DN is in issuer cert */ |
| #define | PRE_FLAG_MAX 0x0001 /* Maximum possible flag value */ |
| #define | CHECKDN_FLAG_NONE 0x00 /* No DN check */ |
| #define | CHECKDN_FLAG_COUNTRY 0x01 /* Check DN has C */ |
| #define | CHECKDN_FLAG_COMMONNAME 0x02 /* Check DN has CN */ |
| #define | CHECKDN_FLAG_WELLFORMED 0x04 /* Check DN is well-formed */ |
| #define | CHECKDN_FLAG_MAX 0x0F /* Maximum possible flag value */ |
| #define | ATTRIBUTE_PTR void |
| #define | ATTRIBUTE_PTR_STORAGE char[ 64 ] |
| #define | DN_PTR void |
| #define | DN_PTR_STORAGE char[ 32 ] |
| #define | initSelectionInfo(certInfoPtr) |
| #define | saveSelectionState(savedState, certInfoPtr) |
| #define | restoreSelectionState(savedState, certInfoPtr) |
| #define | cCertCert certInfo.certInfo |
| #define | cCertReq certInfo.reqInfo |
| #define | cCertRev certInfo.revInfo |
| #define | cCertVal certInfo.valInfo |
| #define | cCertUser certInfo.pkiUserInfo |
| #define | isDNSelectionComponent(certInfoType) |
| #define | isDNComponent(certInfoType) |
| #define | isGeneralNameComponent(certInfoType) |
| #define | isPseudoInformation(certInfoType) |
| #define | isRevocationEntryComponent(certInfoType) |
| #define | isValidAttributeField(attributePtr) ( ( attributePtr )->attributeID > 0 ) |
Typedefs | |
| typedef CHECK_RETVAL_FNPTR | STDC_NONNULL_ARG ((1, 2)) int(*READCERT_FUNCTION)(INOUT STREAM *stream |
| typedef CHECK_RETVAL_FNPTR INOUT CERT_INFO * | certInfoPtr |
| typedef CHECK_RETVAL_FNPTR INOUT CERT_INFO * | subjectCertInfoPtr |
| typedef CHECK_RETVAL_FNPTR INOUT CERT_INFO IN_OPT const CERT_INFO * | issuerCertInfoPtr |
| typedef CHECK_RETVAL_FNPTR INOUT CERT_INFO IN_OPT const CERT_INFO IN_HANDLE_OPT const CRYPT_CONTEXT | iIssuerCryptContext |
Functions | |
| CHECK_RETVAL_PTR READCERT_FUNCTION | getCertReadFunction (IN_ENUM(CRYPT_CERTTYPE) const CRYPT_CERTTYPE_TYPE certType) |
| CHECK_RETVAL_PTR WRITECERT_FUNCTION | getCertWriteFunction (IN_ENUM(CRYPT_CERTTYPE) const CRYPT_CERTTYPE_TYPE certType) |
| CHECK_RETVAL_BOOL BOOLEAN | isGeneralNameSelectionComponent (IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE certInfoType) |
| #define cCertCert certInfo.certInfo |
| #define CERT_FLAG_CERTCOLLECTION 0x10 /* Certificate chain is unordered collection */ |
| #define CERT_FLAG_CRLENTRY 0x08 /* CRL is a standalone single entry */ |
| #define CERT_FLAG_DATAONLY 0x04 /* Certificate is data-only (no context) */ |
| #define CERT_FLAG_PATHKLUDGE 0x20 /* Certificate is a PKIX path kludge */ |
| #define CERT_FLAG_SELFSIGNED 0x01 /* Certificate is self-signed */ |
| #define CERT_FLAG_SIGCHECKED 0x02 /* Signature has been checked */ |
| #define CHECKDN_FLAG_MAX 0x0F /* Maximum possible flag value */ |
| #define CHECKDN_FLAG_WELLFORMED 0x04 /* Check DN is well-formed */ |
| #define CHECKKEY_FLAG_GENCHECK 0x04 /* General details check */ |
| #define CHECKKEY_FLAG_MAX 0x07 /* Maximum possible flag value */ |
| #define CHECKKEY_FLAG_PRIVATEKEY 0x02 /* Check priv.key constraints */ |
| #define initSelectionInfo | ( | certInfoPtr | ) |
| #define isDNComponent | ( | certInfoType | ) |
| #define isDNSelectionComponent | ( | certInfoType | ) |
| #define isGeneralNameComponent | ( | certInfoType | ) |
| #define isPseudoInformation | ( | certInfoType | ) |
| #define isRevocationEntryComponent | ( | certInfoType | ) |
| #define isValidAttributeField | ( | attributePtr | ) | ( ( attributePtr )->attributeID > 0 ) |
| #define MIN_CERT_TIME_VALUE ( ( 1996 - 1970 ) * 365 * 86400L ) |
| #define PRE_CHECK_DN_PARTIAL 0x0004 /* Partial subject DN present */ |
| #define PRE_CHECK_FLAG_MAX 0x01FF /* Maximum possible flag value */ |
| #define PRE_CHECK_ISSUERCERTDN 0x0010 /* Issuer cert DN == subj.issuer DN */ |
| #define PRE_CHECK_NONSELFSIGNED_DN 0x0020 /* Issuer DN != subject DN */ |
| #define PRE_CHECK_REVENTRIES 0x0100 /* Revocation entries present */ |
| #define PRE_CHECK_VALENTRIES 0x0080 /* Validity entries present */ |
| #define PRE_FLAG_DN_IN_ISSUERCERT 0x0001/* Issuer DN is in issuer cert */ |
| #define PRE_FLAG_MAX 0x0001 /* Maximum possible flag value */ |
| #define PRE_FLAG_NONE 0x0000 /* No special control options */ |
| #define PRE_SET_FLAG_MAX 0x003F /* Maximum possible flag value */ |
| #define PRE_SET_ISSUERATTR 0x0002 /* Copy issuer attr.to subject */ |
| #define PRE_SET_ISSUERDN 0x0004 /* Copy issuer DN to subject */ |
| #define PRE_SET_REVINFO 0x0020 /* Set up revocation information */ |
| #define PRE_SET_STANDARDATTR 0x0001 /* Set up standard extensions */ |
| #define PRE_SET_VALIDITYPERIOD 0x0008 /* Constrain subj.val.to issuer val.*/ |
| #define PRE_SET_VALINFO 0x0010 /* Set up validity information */ |
| #define restoreSelectionState | ( | savedState, | |
| certInfoPtr | |||
| ) |
| #define saveSelectionState | ( | savedState, | |
| certInfoPtr | |||
| ) |
| CHECK_RETVAL *certObjectLength void IN_LENGTH const int OUT_LENGTH_Z int const CERT_INFO * certInfoPtr |
| STDC_NONNULL_ARG | ( | (1, 2) | ) |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| enum ATTRIBUTE_TYPE |
| enum POLICY_TYPE |
| enum RTCSRESPONSE_TYPE |
| enum SELECTION_OPTION |
| CHECK_RETVAL_PTR READCERT_FUNCTION getCertReadFunction | ( | IN_ENUM(CRYPT_CERTTYPE) const CRYPT_CERTTYPE_TYPE | certType | ) |
| CHECK_RETVAL_PTR WRITECERT_FUNCTION getCertWriteFunction | ( | IN_ENUM(CRYPT_CERTTYPE) const CRYPT_CERTTYPE_TYPE | certType | ) |
| CHECK_RETVAL_BOOL BOOLEAN isGeneralNameSelectionComponent | ( | IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE | certInfoType | ) |
1.8.2