⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cert_struct.h

📁 vc环境下的pgp源码
💻 H
📖 第 1 页 / 共 2 页
字号:
    PKIINTEGER *j;
    PKIValidationParms *validationParms;
} PKIDomainParameters;
#define PKIID_DomainParameters PKIID_SEQUENCE

typedef struct {
    PKIDirectoryString *nameAssigner;
    PKIDirectoryString  partyName;
} PKIEDIPartyName;
#define PKIID_EDIPartyName PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIExtension *elt[ PKIMAX_Extensions ];
} PKIExtensions;
#define PKIID_Extensions PKIID_SEQUENCE_OF

typedef struct {
    PKIDisplayText  organization;
    PKInoticeNumbers_SEQ_OF  noticeNumbers;
} PKINoticeReference;
#define PKIID_NoticeReference PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIPolicyMappings_SEQUENCE *elt[ PKIMAX_PolicyMappings ];
} PKIPolicyMappings;
#define PKIID_PolicyMappings PKIID_SEQUENCE_OF

typedef struct {
    long  n;          /* number of elements */
    PKIAttributeTypeAndValue *elt[ PKIMAX_RelativeDistinguishedName ];
} PKIRelativeDistinguishedName;
#define PKIID_RelativeDistinguishedName PKIID_SET_OF

typedef struct {
    PKIAlgorithmIdentifier  algorithm;
    PKIBIT_STRING  subjectPublicKey;
} PKISubjectPublicKeyInfo;
#define PKIID_SubjectPublicKeyInfo PKIID_SEQUENCE

typedef struct {
    PKITime  notBefore;
    PKITime  notAfter;
} PKIValidity;
#define PKIID_Validity PKIID_SEQUENCE

typedef struct {
    PKIANY  tbsCertificate;
    PKIAlgorithmIdentifier  signatureAlgorithm;
    PKIBIT_STRING  signature;
} PKIXCertificate;
#define PKIID_XCertificate PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIPolicyQualifierInfo *elt[ PKIMAX_policyQualifiers_SEQ_OF ];
} PKIpolicyQualifiers_SEQ_OF;
#define PKIID_policyQualifiers_SEQ_OF PKIID_SEQUENCE_OF

typedef struct {
    long  n;          /* number of elements */
    PKIAttribute *elt[ PKIMAX_Attributes ];
} PKIAttributes;
#define PKIID_Attributes PKIID_SET_OF

typedef struct {
    PKICertPolicyId  policyIdentifier;
    PKIpolicyQualifiers_SEQ_OF *policyQualifiers;
} PKIPolicyInformation;
#define PKIID_PolicyInformation PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIRelativeDistinguishedName *elt[ PKIMAX_RDNSequence ];
} PKIRDNSequence;
#define PKIID_RDNSequence PKIID_SEQUENCE_OF

typedef struct {
    PKICertificateSerialNumber  userCertificate;
    PKITime  revocationDate;
    PKIExtensions *crlEntryExtensions;
} PKIRevokedCertificate;
#define PKIID_RevokedCertificate PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIAttribute *elt[ PKIMAX_SubjectDirectoryAttributes ];
} PKISubjectDirectoryAttributes;
#define PKIID_SubjectDirectoryAttributes PKIID_SEQUENCE_OF

typedef struct {
    PKINoticeReference *noticeRef;
    PKIDisplayText *explicitText;
} PKIUserNotice;
#define PKIID_UserNotice PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIPolicyInformation *elt[ PKIMAX_CertificatePolicies ];
} PKICertificatePolicies;
#define PKIID_CertificatePolicies PKIID_SEQUENCE_OF

typedef PKIRDNSequence PKIDistinguishedName;
#define PKIID_DistinguishedName PKIID_RDNSequence

typedef struct {
    unsigned char CHOICE_field_type;
    void *data;
} PKIName;
#define PKIID_Name PKIID_CHOICE
/* tags for fields defined for Name */
#define PKIrdnSequence_NameFieldTag PKIID_RDNSequence

typedef struct {
    long  n;          /* number of elements */
    PKIRevokedCertificate *elt[ PKIMAX_RevokedCertificates ];
} PKIRevokedCertificates;
#define PKIID_RevokedCertificates PKIID_SEQUENCE_OF

typedef struct {
    PKIVersion  version;
    PKIName  subject;
    PKISubjectPublicKeyInfo  subjectPublicKeyInfo;
    PKIAttributes  attributes;
} PKICertificationRequestInfo;
#define PKIID_CertificationRequestInfo PKIID_SEQUENCE

typedef struct {
    unsigned char CHOICE_field_type;
    void *data;
} PKIGeneralName;
#define PKIID_GeneralName PKIID_CHOICE
/* tags for fields defined for GeneralName */
#define PKIotherName_GeneralNameFieldTag 0x80|0x00
#define PKIrfc822Name_GeneralNameFieldTag 0x80|0x01
#define PKIdNSName_GeneralNameFieldTag 0x80|0x02
#define PKIdirectoryName_GeneralNameFieldTag 0x80|0x20|0x04
#define PKIediPartyName_GeneralNameFieldTag 0x80|0x05
#define PKIuniformResourceIdentifier_GeneralNameFieldTag 0x80|0x06
#define PKIiPAddress_GeneralNameFieldTag 0x80|0x07
#define PKIregisteredID_GeneralNameFieldTag 0x80|0x08

typedef struct {
    PKIVersion *version;
    PKIAlgorithmIdentifier  signature;
    PKIName  issuer;
    PKITime  thisUpdate;
    PKITime *nextUpdate;
    PKIRevokedCertificates *revokedCertificates;
    PKIExtensions *crlExtensions;
} PKITBSCertList;
#define PKIID_TBSCertList PKIID_SEQUENCE

typedef struct {
    PKIVersion *version;
    PKICertificateSerialNumber  serialNumber;
    PKIAlgorithmIdentifier  signature;
    PKIName  issuer;
    PKIValidity  validity;
    PKIName  subject;
    PKISubjectPublicKeyInfo  subjectPublicKeyInfo;
    PKIUniqueIdentifier *issuerUniqueID;
    PKIUniqueIdentifier *subjectUniqueID;
    PKIExtensions *extensions;
} PKITBSCertificate;
#define PKIID_TBSCertificate PKIID_SEQUENCE

typedef struct {
    PKIOBJECT_ID  accessMethod;
    PKIGeneralName  accessLocation;
} PKIAccessDescription;
#define PKIID_AccessDescription PKIID_SEQUENCE

typedef struct {
    PKITBSCertificate  tbsCertificate;
    PKIAlgorithmIdentifier  signatureAlgorithm;
    PKIBIT_STRING  signature;
} PKICertificate;
#define PKIID_Certificate PKIID_SEQUENCE

typedef struct {
    PKITBSCertList  tbsCertList;
    PKIAlgorithmIdentifier  signatureAlgorithm;
    PKIBIT_STRING  signature;
} PKICertificateList;
#define PKIID_CertificateList PKIID_SEQUENCE

typedef struct {
    PKICertificationRequestInfo  certificationRequestInfo;
    PKIAlgorithmIdentifier  signatureAlgorithm;
    PKIBIT_STRING  signature;
} PKICertificationRequest;
#define PKIID_CertificationRequest PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIGeneralName *elt[ PKIMAX_GeneralNames ];
} PKIGeneralNames;
#define PKIID_GeneralNames PKIID_SEQUENCE_OF

typedef struct {
    PKIGeneralName  base;
    PKIBaseDistance *minimum;
    PKIBaseDistance *maximum;
} PKIGeneralSubtree;
#define PKIID_GeneralSubtree PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIAccessDescription *elt[ PKIMAX_AuthorityInfoAccessSyntax ];
} PKIAuthorityInfoAccessSyntax;
#define PKIID_AuthorityInfoAccessSyntax PKIID_SEQUENCE_OF

typedef struct {
    PKIKeyIdentifier *keyIdentifier;
    PKIGeneralNames *authorityCertIssuer;
    PKICertificateSerialNumber *authorityCertSerialNumber;
} PKIAuthorityKeyIdentifier;
#define PKIID_AuthorityKeyIdentifier PKIID_SEQUENCE

typedef PKIGeneralNames PKICertificateIssuer;
#define PKIID_CertificateIssuer PKIID_GeneralNames

typedef struct {
    unsigned char CHOICE_field_type;
    void *data;
} PKIDistributionPointName;
#define PKIID_DistributionPointName PKIID_CHOICE
/* tags for fields defined for DistributionPointName */
#define PKIfullName_DistributionPointNameFieldTag 0x80|0x00
#define PKInameRelativeToCRLIssuer_DistributionPointNameFieldTag 0x80|0x01

typedef struct {
    long  n;          /* number of elements */
    PKIGeneralSubtree *elt[ PKIMAX_GeneralSubtrees ];
} PKIGeneralSubtrees;
#define PKIID_GeneralSubtrees PKIID_SEQUENCE_OF

typedef PKIGeneralNames PKIIssuerAltName;
#define PKIID_IssuerAltName PKIID_GeneralNames

typedef PKIGeneralNames PKISubjectAltName;
#define PKIID_SubjectAltName PKIID_GeneralNames

typedef struct {
    PKIDistributionPointName *distributionPoint;
    PKIReasonFlags *reasons;
    PKIGeneralNames *cRLIssuer;
} PKIDistributionPoint;
#define PKIID_DistributionPoint PKIID_SEQUENCE

typedef struct {
    PKIDistributionPointName *distributionPoint;
    PKIBOOLEAN *onlyContainsUserCerts;
    PKIBOOLEAN *onlyContainsCACerts;
    PKIReasonFlags *onlySomeReasons;
    PKIBOOLEAN *indirectCRL;
} PKIIssuingDistributionPoint;
#define PKIID_IssuingDistributionPoint PKIID_SEQUENCE

typedef struct {
    PKIGeneralSubtrees *permittedSubtrees;
    PKIGeneralSubtrees *excludedSubtrees;
} PKINameConstraints;
#define PKIID_NameConstraints PKIID_SEQUENCE

typedef struct {
    long  n;          /* number of elements */
    PKIDistributionPoint *elt[ PKIMAX_CRLDistPointsSyntax ];
} PKICRLDistPointsSyntax;
#define PKIID_CRLDistPointsSyntax PKIID_SEQUENCE_OF


#endif /* cert_STRUCT_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -