📄 pgpx509cert_struct.h
字号:
/*******************************************************************
*
* This file was generated by TIS/ASN1COMP Ver. 4.2, an ASN.1 compiler.
* TIS/ASN1COMP is Copyright (c) 1998, TIS Labs at Network Associates, Inc.
*
* This file was AUTOMATICALLY GENERATED on Tue May 18 17:09:44 1999
*
******************************************************************/
#ifndef pgpX509Cert_STRUCT_H_
#define pgpX509Cert_STRUCT_H_
#include "pgpX509Cert_util.h"
#include "pgpX509Cert_sizes.h"
/*******************************************************************
*
* Structure and type definitions
*
******************************************************************/
typedef PGPASN_OBJECT_ID PGPASN_AttributeType;
#define PGPASN_ID_AttributeType PGPASN_ID_OBJECT_ID
typedef PGPASN_ANY PGPASN_AttributeValue;
#define PGPASN_ID_AttributeValue PGPASN_ID_ANY
typedef PGPASN_OCTET_STRING PGPASN_BMPString;
#define PGPASN_ID_BMPString 0x1e
typedef PGPASN_INTEGER PGPASN_CertificateSerialNumber;
#define PGPASN_ID_CertificateSerialNumber PGPASN_ID_INTEGER
typedef PGPASN_OBJECT_ID PGPASN_ContentType;
#define PGPASN_ID_ContentType PGPASN_ID_OBJECT_ID
typedef PGPASN_INTEGER PGPASN_DSAPublicKey;
#define PGPASN_ID_DSAPublicKey PGPASN_ID_INTEGER
typedef PGPASN_OCTET_STRING PGPASN_Data;
#define PGPASN_ID_Data PGPASN_ID_OCTET_STRING
typedef PGPASN_INTEGER PGPASN_ELGPublicKey;
#define PGPASN_ID_ELGPublicKey PGPASN_ID_INTEGER
typedef PGPASN_OCTET_STRING PGPASN_EncryptedDigest;
#define PGPASN_ID_EncryptedDigest PGPASN_ID_OCTET_STRING
typedef PGPASN_BIT_STRING PGPASN_KeyUsage;
#define PGPASN_ID_KeyUsage PGPASN_ID_BIT_STRING
/* define bits for PGPASN_KeyUsage */
#define PGPASN_KeyUsage_cRLSign 0x40 /* bit 6 */
#define PGPASN_KeyUsage_dataEncipherment 0x8 /* bit 3 */
#define PGPASN_KeyUsage_decipherOnly 0x100 /* bit 8 */
#define PGPASN_KeyUsage_digitalSignature 0x1 /* bit 0 */
#define PGPASN_KeyUsage_encipherOnly 0x80 /* bit 7 */
#define PGPASN_KeyUsage_keyAgreement 0x10 /* bit 4 */
#define PGPASN_KeyUsage_keyCertSign 0x20 /* bit 5 */
#define PGPASN_KeyUsage_keyEncipherment 0x4 /* bit 2 */
#define PGPASN_KeyUsage_nonRepudiation 0x2 /* bit 1 */
/* end of bits for PGPASN_KeyUsage */
typedef PGPASN_OCTET_STRING PGPASN_PrivateKey;
#define PGPASN_ID_PrivateKey PGPASN_ID_OCTET_STRING
typedef PGPASN_BIT_STRING PGPASN_ReasonFlags;
#define PGPASN_ID_ReasonFlags PGPASN_ID_BIT_STRING
/* define bits for PGPASN_ReasonFlags */
#define PGPASN_ReasonFlags_affiliationChanged 0x8 /* bit 3 */
#define PGPASN_ReasonFlags_cACompromise 0x4 /* bit 2 */
#define PGPASN_ReasonFlags_certificateHold 0x40 /* bit 6 */
#define PGPASN_ReasonFlags_cessationOfOperation 0x20 /* bit 5 */
#define PGPASN_ReasonFlags_keyCompromise 0x2 /* bit 1 */
#define PGPASN_ReasonFlags_superseded 0x10 /* bit 4 */
#define PGPASN_ReasonFlags_unused 0x1 /* bit 0 */
/* end of bits for PGPASN_ReasonFlags */
typedef PGPASN_BIT_STRING PGPASN_Signature;
#define PGPASN_ID_Signature PGPASN_ID_BIT_STRING
typedef PGPASN_OCTET_STRING PGPASN_UTF8String;
#define PGPASN_ID_UTF8String 0x0c
typedef PGPASN_BIT_STRING PGPASN_UniqueIdentifier;
#define PGPASN_ID_UniqueIdentifier PGPASN_ID_BIT_STRING
typedef PGPASN_OCTET_STRING PGPASN_UniversalString;
#define PGPASN_ID_UniversalString 0x1c
typedef PGPASN_INTEGER PGPASN_Version;
#define PGPASN_ID_Version PGPASN_ID_INTEGER
typedef struct {
PGPASN_OBJECT_ID algorithm;
PGPASN_ANY *parameters;
} PGPASN_AlgorithmIdentifier;
#define PGPASN_ID_AlgorithmIdentifier PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_AttributeType type;
PGPASN_AttributeValue value;
} PGPASN_AttributeTypeAndValue;
#define PGPASN_ID_AttributeTypeAndValue PGPASN_ID_SEQUENCE
typedef struct {
long n; /* number of elements */
PGPASN_AttributeValue *elt[ PGPASN_MAX_AttributeValues ];
} PGPASN_AttributeValues;
#define PGPASN_ID_AttributeValues PGPASN_ID_SET_OF
typedef struct {
PGPASN_BOOLEAN *cA;
PGPASN_INTEGER *pathLenConstraint;
} PGPASN_BasicConstraints;
#define PGPASN_ID_BasicConstraints PGPASN_ID_SEQUENCE
typedef struct {
unsigned char CHOICE_field_type;
void *data;
} PGPASN_CertificateValidityDate;
#define PGPASN_ID_CertificateValidityDate PGPASN_ID_CHOICE
/* tags for fields defined for CertificateValidityDate */
#define PGPASN_utcTime_CertificateValidityDateFieldTag PGPASN_ID_UTCTime
#define PGPASN_generalTime_CertificateValidityDateFieldTag PGPASN_ID_GeneralizedTime
typedef struct {
PGPASN_ContentType contentType;
PGPASN_ANY *content;
} PGPASN_ContentInfo;
#define PGPASN_ID_ContentInfo PGPASN_ID_SEQUENCE
typedef struct {
unsigned char CHOICE_field_type;
void *data;
} PGPASN_DirectoryString;
#define PGPASN_ID_DirectoryString PGPASN_ID_CHOICE
/* tags for fields defined for DirectoryString */
#define PGPASN_teletexString_DirectoryStringFieldTag PGPASN_ID_T61String
#define PGPASN_printableString_DirectoryStringFieldTag PGPASN_ID_PrintableString
#define PGPASN_universalString_DirectoryStringFieldTag PGPASN_ID_UniversalString
#define PGPASN_utf8String_DirectoryStringFieldTag PGPASN_ID_UTF8String
#define PGPASN_bmpString_DirectoryStringFieldTag PGPASN_ID_BMPString
#define PGPASN_ia5String_DirectoryStringFieldTag PGPASN_ID_IA5String
typedef struct {
PGPASN_INTEGER p;
PGPASN_INTEGER q;
PGPASN_INTEGER g;
} PGPASN_DssParms;
#define PGPASN_ID_DssParms PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_INTEGER r;
PGPASN_INTEGER s;
} PGPASN_DssSigValue;
#define PGPASN_ID_DssSigValue PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_INTEGER p;
PGPASN_INTEGER g;
} PGPASN_ELGParms;
#define PGPASN_ID_ELGParms PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_OBJECT_ID extnID;
PGPASN_BOOLEAN *critical;
PGPASN_OCTET_STRING extnValue;
} PGPASN_Extension;
#define PGPASN_ID_Extension PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_OBJECT_ID type_id;
PGPASN_ANY value;
} PGPASN_OtherName;
#define PGPASN_ID_OtherName PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_INTEGER modulus;
PGPASN_INTEGER exponent;
} PGPASN_RSAKey;
#define PGPASN_ID_RSAKey PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_Version version;
PGPASN_INTEGER modulus;
PGPASN_INTEGER publicExponent;
PGPASN_INTEGER privateExponent;
PGPASN_INTEGER prime1;
PGPASN_INTEGER prime2;
PGPASN_INTEGER exponent1;
PGPASN_INTEGER exponent2;
PGPASN_INTEGER coefficient;
} PGPASN_RSAPrivateKey;
#define PGPASN_ID_RSAPrivateKey PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_ANY issuer;
PGPASN_CertificateSerialNumber serialNumber;
} PGPASN_XIssuerAndSerialNumber;
#define PGPASN_ID_XIssuerAndSerialNumber PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_ANY tbsCertificate;
PGPASN_ANY signatureAlgorithm;
PGPASN_ANY signature;
} PGPASN_XXCertificate;
#define PGPASN_ID_XXCertificate PGPASN_ID_SEQUENCE
typedef struct {
PGPASN_AttributeType type;
PGPASN_AttributeValues values;
} PGPASN_Attribute;
#define PGPASN_ID_Attribute PGPASN_ID_SEQUENCE
typedef PGPASN_AlgorithmIdentifier PGPASN_ContentEncryptionAlgorithmIdentifier;
#define PGPASN_ID_ContentEncryptionAlgorithmIdentifier PGPASN_ID_AlgorithmIdentifier
typedef PGPASN_AlgorithmIdentifier PGPASN_DigestAlgorithmIdentifier;
#define PGPASN_ID_DigestAlgorithmIdentifier PGPASN_ID_AlgorithmIdentifier
typedef PGPASN_AlgorithmIdentifier PGPASN_DigestEncryptionAlgorithmIdentifier;
#define PGPASN_ID_DigestEncryptionAlgorithmIdentifier PGPASN_ID_AlgorithmIdentifier
typedef struct {
long n; /* number of elements */
PGPASN_Extension *elt[ PGPASN_MAX_Extensions ];
} PGPASN_Extensions;
#define PGPASN_ID_Extensions PGPASN_ID_SEQUENCE_OF
typedef PGPASN_AlgorithmIdentifier PGPASN_KeyEncryptionAlgorithmIdentifier;
#define PGPASN_ID_KeyEncryptionAlgorithmIdentifier PGPASN_ID_AlgorithmIdentifier
typedef PGPASN_AlgorithmIdentifier PGPASN_PrivateKeyAlgorithmIdentifier;
#define PGPASN_ID_PrivateKeyAlgorithmIdentifier PGPASN_ID_AlgorithmIdentifier
typedef struct {
long n; /* number of elements */
PGPASN_AttributeTypeAndValue *elt[ PGPASN_MAX_RelativeDistinguishedName ];
} PGPASN_RelativeDistinguishedName;
#define PGPASN_ID_RelativeDistinguishedName PGPASN_ID_SET_OF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -