📄 pgpx509cert_struct.h
字号:
typedef PGPASN_AlgorithmIdentifier PGPASN_SignatureAlgorithmIdentifier;
#define PGPASN_ID_SignatureAlgorithmIdentifier PGPASN_ID_AlgorithmIdentifier
typedef struct {
PGPASN_AlgorithmIdentifier algorithm;
PGPASN_BIT_STRING subjectPublicKey;
} PGPASN_SubjectPublicKeyInfo;
#define PGPASN_ID_SubjectPublicKeyInfo PGPASN_ID_SEQUENCE
typedef PGPASN_CertificateValidityDate PGPASN_Time;
#define PGPASN_ID_Time PGPASN_ID_CertificateValidityDate
typedef struct {
PGPASN_CertificateValidityDate notBefore;
PGPASN_CertificateValidityDate notAfter;
} PGPASN_Validity;
#define PGPASN_ID_Validity PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_ANY tbsCertificate;
PGPASN_AlgorithmIdentifier signatureAlgorithm;
PGPASN_BIT_STRING signature;
} PGPASN_XCertificate;
#define PGPASN_ID_XCertificate PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_Attribute *elt[ PGPASN_MAX_Attributes ];
} PGPASN_Attributes;
#define PGPASN_ID_Attributes PGPASN_ID_SET_OF
typedef struct {
long n; /* number of elements */
PGPASN_DigestAlgorithmIdentifier *elt[ PGPASN_MAX_DigestAlgorithmIdentifiers ];
} PGPASN_DigestAlgorithmIdentifiers;
#define PGPASN_ID_DigestAlgorithmIdentifiers PGPASN_ID_SET_OF
typedef struct {
PGPASN_Version *version;
PGPASN_Time keyCreation;
} PGPASN_PGPExtension;
#define PGPASN_ID_PGPExtension PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_RelativeDistinguishedName *elt[ PGPASN_MAX_RDNSequence ];
} PGPASN_RDNSequence;
#define PGPASN_ID_RDNSequence PGPASN_ID_SEQUENCE_OF
typedef struct {
PGPASN_CertificateSerialNumber userCertificate;
PGPASN_Time revocationDate;
PGPASN_Extensions *crlEntryExtensions;
} PGPASN_RevokedCertificate;
#define PGPASN_ID_RevokedCertificate PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_Version *version;
PGPASN_CertificateSerialNumber serialNumber;
PGPASN_AlgorithmIdentifier signature;
PGPASN_ANY issuer;
PGPASN_ANY validity;
PGPASN_ANY subject;
PGPASN_ANY subjectPublicKeyInfo;
PGPASN_UniqueIdentifier *issuerUniqueID;
PGPASN_UniqueIdentifier *subjectUniqueID;
PGPASN_Extensions *extensions;
} PGPASN_XTBSCertificate;
#define PGPASN_ID_XTBSCertificate PGPASN_ID_SEQUENCE
typedef struct {
unsigned char CHOICE_field_type;
void *data;
} PGPASN_Name;
#define PGPASN_ID_Name PGPASN_ID_CHOICE
/* tags for fields defined for Name */
#define PGPASN_rdnSequence_NameFieldTag PGPASN_ID_RDNSequence
typedef struct {
PGPASN_Version version;
PGPASN_PrivateKeyAlgorithmIdentifier privateKeyAlgorithm;
PGPASN_PrivateKey privateKey;
PGPASN_Attributes *attributes;
} PGPASN_PrivateKeyInfo;
#define PGPASN_ID_PrivateKeyInfo PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_RevokedCertificate *elt[ PGPASN_MAX_revokedCertificates_SEQ_OF ];
} PGPASN_revokedCertificates_SEQ_OF;
#define PGPASN_ID_revokedCertificates_SEQ_OF PGPASN_ID_SEQUENCE_OF
typedef struct {
PGPASN_Version version;
PGPASN_Name subject;
PGPASN_SubjectPublicKeyInfo subjectPublicKeyInfo;
PGPASN_Attributes attributes;
} PGPASN_CertificationRequestInfo;
#define PGPASN_ID_CertificationRequestInfo PGPASN_ID_SEQUENCE
typedef struct {
unsigned char CHOICE_field_type;
void *data;
} PGPASN_GeneralName;
#define PGPASN_ID_GeneralName PGPASN_ID_CHOICE
/* tags for fields defined for GeneralName */
#define PGPASN_otherName_GeneralNameFieldTag 0x80|0x20|0x00
#define PGPASN_rfc822Name_GeneralNameFieldTag 0x80|0x20|0x01
#define PGPASN_dNSName_GeneralNameFieldTag 0x80|0x20|0x02
#define PGPASN_directoryName_GeneralNameFieldTag 0x80|0x20|0x04
#define PGPASN_uniformResourceIdentifier_GeneralNameFieldTag 0x80|0x20|0x06
#define PGPASN_iPAddress_GeneralNameFieldTag 0x80|0x20|0x07
#define PGPASN_registeredID_GeneralNameFieldTag 0x80|0x20|0x08
typedef struct {
PGPASN_Name issuer;
PGPASN_CertificateSerialNumber serialNumber;
} PGPASN_IssuerAndSerialNumber;
#define PGPASN_ID_IssuerAndSerialNumber PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_Version *version;
PGPASN_AlgorithmIdentifier signature;
PGPASN_Name issuer;
PGPASN_Time thisUpdate;
PGPASN_Time *nextUpdate;
PGPASN_revokedCertificates_SEQ_OF *revokedCertificates;
PGPASN_Extensions *crlExtensions;
} PGPASN_TBSCertList;
#define PGPASN_ID_TBSCertList PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_Version *version;
PGPASN_CertificateSerialNumber serialNumber;
PGPASN_AlgorithmIdentifier signature;
PGPASN_Name issuer;
PGPASN_Validity validity;
PGPASN_Name subject;
PGPASN_SubjectPublicKeyInfo subjectPublicKeyInfo;
PGPASN_UniqueIdentifier *issuerUniqueID;
PGPASN_UniqueIdentifier *subjectUniqueID;
PGPASN_Extensions *extensions;
} PGPASN_TBSCertificate;
#define PGPASN_ID_TBSCertificate PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_TBSCertificate tbsCertificate;
PGPASN_AlgorithmIdentifier signatureAlgorithm;
PGPASN_BIT_STRING signature;
} PGPASN_Certificate;
#define PGPASN_ID_Certificate PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_TBSCertList tbsCertList;
PGPASN_AlgorithmIdentifier signatureAlgorithm;
PGPASN_BIT_STRING signature;
} PGPASN_CertificateRevocationList;
#define PGPASN_ID_CertificateRevocationList PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_CertificationRequestInfo certificationRequestInfo;
PGPASN_SignatureAlgorithmIdentifier signatureAlgorithm;
PGPASN_Signature signature;
} PGPASN_CertificationRequest;
#define PGPASN_ID_CertificationRequest PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_GeneralName *elt[ PGPASN_MAX_GeneralNames ];
} PGPASN_GeneralNames;
#define PGPASN_ID_GeneralNames PGPASN_ID_SEQUENCE_OF
typedef struct {
PGPASN_Version version;
PGPASN_IssuerAndSerialNumber issuerAndSerialNumber;
PGPASN_DigestAlgorithmIdentifier digestAlgorithm;
PGPASN_Attributes *authenticatedAttributes;
PGPASN_DigestEncryptionAlgorithmIdentifier digestEncryptionAlgorithm;
PGPASN_EncryptedDigest encryptedDigest;
PGPASN_Attributes *unauthenticatedAttributes;
} PGPASN_SignerInfo;
#define PGPASN_ID_SignerInfo PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_CertificateRevocationList *elt[ PGPASN_MAX_CertificateRevocationLists ];
} PGPASN_CertificateRevocationLists;
#define PGPASN_ID_CertificateRevocationLists PGPASN_ID_SET_OF
typedef struct {
long n; /* number of elements */
PGPASN_Certificate *elt[ PGPASN_MAX_Certificates ];
} PGPASN_Certificates;
#define PGPASN_ID_Certificates PGPASN_ID_SET_OF
typedef struct {
unsigned char CHOICE_field_type;
void *data;
} PGPASN_DistributionPointName;
#define PGPASN_ID_DistributionPointName PGPASN_ID_CHOICE
/* tags for fields defined for DistributionPointName */
#define PGPASN_fullName_DistributionPointNameFieldTag 0x80|0x00
#define PGPASN_nameRelativeToCRLIssuer_DistributionPointNameFieldTag 0x80|0x01
typedef struct {
long n; /* number of elements */
PGPASN_SignerInfo *elt[ PGPASN_MAX_SignerInfos ];
} PGPASN_SignerInfos;
#define PGPASN_ID_SignerInfos PGPASN_ID_SET_OF
typedef struct {
PGPASN_DistributionPointName *distributionPoint;
PGPASN_ReasonFlags *reasons;
PGPASN_GeneralNames *cRLIssuer;
} PGPASN_DistributionPoint;
#define PGPASN_ID_DistributionPoint PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_DistributionPointName *distributionPoint;
PGPASN_BOOLEAN *onlyContainsUserCerts;
PGPASN_BOOLEAN *onlyContainsCACerts;
PGPASN_ReasonFlags *onlySomeReasons;
PGPASN_BOOLEAN *indirectCRL;
} PGPASN_IssuingDistributionPoint;
#define PGPASN_ID_IssuingDistributionPoint PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_Version version;
PGPASN_DigestAlgorithmIdentifiers digestAlgorithms;
PGPASN_ContentInfo contentInfo;
PGPASN_Certificates *certificates;
PGPASN_CertificateRevocationLists *crls;
PGPASN_SignerInfos signerInfos;
} PGPASN_SignedData;
#define PGPASN_ID_SignedData PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_DistributionPoint *elt[ PGPASN_MAX_CRLDistPointsSyntax ];
} PGPASN_CRLDistPointsSyntax;
#define PGPASN_ID_CRLDistPointsSyntax PGPASN_ID_SEQUENCE_OF
#endif /* pgpX509Cert_STRUCT_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -