Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2c81e476
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2c81e476
编写于
9月 22, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make X509 opaque
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
7e418832
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
42 deletion
+44
-42
crypto/include/internal/x509_int.h
crypto/include/internal/x509_int.h
+43
-0
include/openssl/x509.h
include/openssl/x509.h
+1
-42
未找到文件。
crypto/include/internal/x509_int.h
浏览文件 @
2c81e476
...
...
@@ -173,3 +173,46 @@ struct x509_cert_aux_st {
ASN1_OCTET_STRING
*
keyid
;
/* key id of private key */
STACK_OF
(
X509_ALGOR
)
*
other
;
/* other unspecified info */
};
struct
x509_cinf_st
{
ASN1_INTEGER
*
version
;
/* [ 0 ] default of v1 */
ASN1_INTEGER
*
serialNumber
;
X509_ALGOR
signature
;
X509_NAME
*
issuer
;
X509_VAL
validity
;
X509_NAME
*
subject
;
X509_PUBKEY
*
key
;
ASN1_BIT_STRING
*
issuerUID
;
/* [ 1 ] optional in v2 */
ASN1_BIT_STRING
*
subjectUID
;
/* [ 2 ] optional in v2 */
STACK_OF
(
X509_EXTENSION
)
*
extensions
;
/* [ 3 ] optional in v3 */
ASN1_ENCODING
enc
;
};
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
;
uint32_t
ex_flags
;
uint32_t
ex_kusage
;
uint32_t
ex_xkusage
;
uint32_t
ex_nscert
;
ASN1_OCTET_STRING
*
skid
;
AUTHORITY_KEYID
*
akid
;
X509_POLICY_CACHE
*
policy_cache
;
STACK_OF
(
DIST_POINT
)
*
crldp
;
STACK_OF
(
GENERAL_NAME
)
*
altname
;
NAME_CONSTRAINTS
*
nc
;
#ifndef OPENSSL_NO_RFC3779
STACK_OF
(
IPAddressFamily
)
*
rfc3779_addr
;
struct
ASIdentifiers_st
*
rfc3779_asid
;
# endif
unsigned
char
sha1_hash
[
SHA_DIGEST_LENGTH
];
X509_CERT_AUX
*
aux
;
}
/* X509 */
;
include/openssl/x509.h
浏览文件 @
2c81e476
...
...
@@ -164,50 +164,9 @@ typedef struct X509_req_info_st X509_REQ_INFO;
typedef
struct
X509_req_st
X509_REQ
;
typedef
struct
x509_cinf_st
{
ASN1_INTEGER
*
version
;
/* [ 0 ] default of v1 */
ASN1_INTEGER
*
serialNumber
;
X509_ALGOR
signature
;
X509_NAME
*
issuer
;
X509_VAL
validity
;
X509_NAME
*
subject
;
X509_PUBKEY
*
key
;
ASN1_BIT_STRING
*
issuerUID
;
/* [ 1 ] optional in v2 */
ASN1_BIT_STRING
*
subjectUID
;
/* [ 2 ] optional in v2 */
STACK_OF
(
X509_EXTENSION
)
*
extensions
;
/* [ 3 ] optional in v3 */
ASN1_ENCODING
enc
;
}
X509_CINF
;
typedef
struct
x509_cert_aux_st
X509_CERT_AUX
;
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
;
uint32_t
ex_flags
;
uint32_t
ex_kusage
;
uint32_t
ex_xkusage
;
uint32_t
ex_nscert
;
ASN1_OCTET_STRING
*
skid
;
AUTHORITY_KEYID
*
akid
;
X509_POLICY_CACHE
*
policy_cache
;
STACK_OF
(
DIST_POINT
)
*
crldp
;
STACK_OF
(
GENERAL_NAME
)
*
altname
;
NAME_CONSTRAINTS
*
nc
;
#ifndef OPENSSL_NO_RFC3779
STACK_OF
(
IPAddressFamily
)
*
rfc3779_addr
;
struct
ASIdentifiers_st
*
rfc3779_asid
;
# endif
unsigned
char
sha1_hash
[
SHA_DIGEST_LENGTH
];
X509_CERT_AUX
*
aux
;
}
/* X509 */
;
typedef
struct
x509_cinf_st
X509_CINF
;
DECLARE_STACK_OF
(
X509
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录