首先,我们看看关于证书结构体X509定义: struct x509_st { X509_CINF *cert_info; X509_ALGOR *sig_alg; ASN1_BIT_STRING *signature; int valid; int references; char *name; CRYPTO_EX_DATA ex_data; /* These contain copies of various extension values */ long ex_pathlen; long ex_pcpathlen; u...
首先,我们看看关于证书结构体X509定义: struct x509_st { X509_CINF *cert_info; X509_ALGOR *sig_alg; ASN1_BIT_STRING *signature; int valid; int references; char *name; CRYPTO_EX_DATA ex_data; /* These contain copies of various extension values */ long ex_pathlen; long ex_pcpathlen; u...
23. aux:辅助信息。另外,x509_cinf结构体则包含了证书的基本信息:1. version:版本号。2. serialNumber:序列号。3. signature:签名算法。4. issuer:发行者名称。5. validity:有效期限。6. subject:主题名称。7. key:公钥。8. issuerUID:发行者唯一标识(可选)。9. subjectUID:主题唯一...
其中,证书主体信息—X509_CINF结构体定义如下: AI检测代码解析 typedefstructx509_cinf_st { ASN1_INTEGER*version;//证书版本 ASN1_INTEGER*serialNumber;//序列号 X509_ALGOR*signature;//签名算法 X509_NAME*issuer;//颁发者 X509_VAL*validity;// 有效时间 X509_NAME*subject;// 持有者 X509_PUBKEY*key;/...
struct x509_cinf_st { ASN1_INTEGER *version; 版本 ASN1_INTEGER serialNumber; 序列号 X509_ALGOR signature; 签名算法 X509_NAME *issuer; 颁发者 X509_VAL validity; 有效时间 X509_NAME *subject; 持有者 X509_PUBKEY *key; 公钥 ASN1_BIT_STRING *issuerUID; 颁发者唯一标识 ...
typedef struct x509_cinf_st { ASN1_INTEGER *version; /* 版本*/ ASN1_INTEGER *serialNumber; /* 序列号*/ X509_ALGOR *signature; /* 签名算法*/ X509_NAME *issuer; /* 颁发者*/ X509_VAL *validity; /* 有效时间*/ X509_NAME *subject; /* 持有者*/ X509_PUBKEY *key; /* 公钥 */ ASN...
structx509_st{X509_CINF*cert_info;X509_ALGOR*sig_alg;ASN1_BIT_STRING*signature;intvalid;intreferences;char*name;CRYPTO_EX_DATA ex_data;/* These contain copies of various extension values */longex_pathlen;longex_pcpathlen;unsignedlongex_flags;unsignedlongex_kusage;unsignedlongex_xkusage;unsigned...
sslutils.c:1252:27: error: invalid use of incomplete typedef ‘X509_CINF’ {aka ‘struct x509_cinf_st’} 1252 | if ((new_cert_info->version = ASN1_INTEGER_new()) == NULL) | ^~ sslutils.c:1259:35: error: invalid use of incomplete typedef ‘X509_CINF’ {aka ‘struct x509_cinf...
X509_REQ结构的设置、读取、打印和比较;数字证书的验证、摘要;各种公钥的导入导出等功能。x509v3目录主要实现了数字证书扩展项相关的函数。26.3 X509数据结构 该结构定义在crypto/x509.h中,如下:typedef struct x509_cinf_st { ASN1_INTEGER *version; /* 版本*/ ASN1_INTEGER *serialNumber; /* 序列号*/...
}X509_CINF; 本结构是数字证书的信息主体; structx509_st { X509_CINF*cert_info; X509_ALGOR*sig_alg; ASN1_BIT_STRING*signature; intvalid; intreferences; char*name; CRYPTO_EX_DATAex_data; longex_pathlen; longex_pcpathlen; unsignedlongex_flags; ...