Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
748118a8
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看板
提交
748118a8
编写于
9月 22, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add new X509 accessors
Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
bf24ac9b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
44 addition
and
0 deletion
+44
-0
crypto/x509/x509_set.c
crypto/x509/x509_set.c
+18
-0
crypto/x509/x_x509a.c
crypto/x509/x_x509a.c
+19
-0
include/openssl/x509.h
include/openssl/x509.h
+7
-0
未找到文件。
crypto/x509/x509_set.c
浏览文件 @
748118a8
...
...
@@ -176,3 +176,21 @@ X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x)
{
return
x
->
cert_info
.
key
;
}
STACK_OF
(
X509_EXTENSION
)
*
X509_get0_extensions
(
const
X509
*
x
)
{
return
x
->
cert_info
.
extensions
;
}
void
X509_get0_uids
(
ASN1_BIT_STRING
**
piuid
,
ASN1_BIT_STRING
**
psuid
,
X509
*
x
)
{
if
(
piuid
!=
NULL
)
*
piuid
=
x
->
cert_info
.
issuerUID
;
if
(
psuid
!=
NULL
)
*
psuid
=
x
->
cert_info
.
subjectUID
;
}
X509_ALGOR
*
X509_get0_tbs_sigalg
(
X509
*
x
)
{
return
&
x
->
cert_info
.
signature
;
}
crypto/x509/x_x509a.c
浏览文件 @
748118a8
...
...
@@ -83,6 +83,11 @@ ASN1_SEQUENCE(X509_CERT_AUX) = {
IMPLEMENT_ASN1_FUNCTIONS
(
X509_CERT_AUX
)
int
X509_trusted
(
const
X509
*
x
)
{
return
x
->
aux
?
1
:
0
;
}
static
X509_CERT_AUX
*
aux_get
(
X509
*
x
)
{
if
(
x
==
NULL
)
...
...
@@ -198,3 +203,17 @@ void X509_reject_clear(X509 *x)
x
->
aux
->
reject
=
NULL
;
}
}
STACK_OF
(
ASN1_OBJECT
)
*
X509_get0_trust_objects
(
X509
*
x
)
{
if
(
x
->
aux
!=
NULL
)
return
x
->
aux
->
trust
;
return
NULL
;
}
STACK_OF
(
ASN1_OBJECT
)
*
X509_get0_reject_objects
(
X509
*
x
)
{
if
(
x
->
aux
!=
NULL
)
return
x
->
aux
->
reject
;
return
NULL
;
}
include/openssl/x509.h
浏览文件 @
748118a8
...
...
@@ -627,6 +627,7 @@ int i2d_re_X509_tbs(X509 *x, unsigned char **pp);
void
X509_get0_signature
(
ASN1_BIT_STRING
**
psig
,
X509_ALGOR
**
palg
,
X509
*
x
);
int
X509_get_signature_nid
(
const
X509
*
x
);
int
X509_trusted
(
const
X509
*
x
);
int
X509_alias_set1
(
X509
*
x
,
unsigned
char
*
name
,
int
len
);
int
X509_keyid_set1
(
X509
*
x
,
unsigned
char
*
id
,
int
len
);
unsigned
char
*
X509_alias_get0
(
X509
*
x
,
int
*
len
);
...
...
@@ -639,6 +640,9 @@ int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj);
void
X509_trust_clear
(
X509
*
x
);
void
X509_reject_clear
(
X509
*
x
);
STACK_OF
(
ASN1_OBJECT
)
*
X509_get0_trust_objects
(
X509
*
x
);
STACK_OF
(
ASN1_OBJECT
)
*
X509_get0_reject_objects
(
X509
*
x
);
DECLARE_ASN1_FUNCTIONS
(
X509_REVOKED
)
DECLARE_ASN1_FUNCTIONS
(
X509_CRL_INFO
)
DECLARE_ASN1_FUNCTIONS
(
X509_CRL
)
...
...
@@ -702,6 +706,9 @@ int X509_get_signature_type(const X509 *x);
* i2d_X509_NAME(X509_get_X509_PUBKEY(x),&buf)
*/
X509_PUBKEY
*
X509_get_X509_PUBKEY
(
const
X509
*
x
);
STACK_OF
(
X509_EXTENSION
)
*
X509_get0_extensions
(
const
X509
*
x
);
void
X509_get0_uids
(
ASN1_BIT_STRING
**
piuid
,
ASN1_BIT_STRING
**
psuid
,
X509
*
x
);
X509_ALGOR
*
X509_get0_tbs_sigalg
(
X509
*
x
);
EVP_PKEY
*
X509_get_pubkey
(
X509
*
x
);
ASN1_BIT_STRING
*
X509_get0_pubkey_bitstr
(
const
X509
*
x
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录