Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4dba585f
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
4dba585f
编写于
4月 16, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add X509_STORE_CTX_set0_untrusted function.
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
64a1385a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
1 deletion
+12
-1
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+5
-0
doc/crypto/X509_STORE_CTX_new.pod
doc/crypto/X509_STORE_CTX_new.pod
+5
-1
include/openssl/x509_vfy.h
include/openssl/x509_vfy.h
+1
-0
util/libcrypto.num
util/libcrypto.num
+1
-0
未找到文件。
crypto/x509/x509_vfy.c
浏览文件 @
4dba585f
...
...
@@ -2343,6 +2343,11 @@ STACK_OF(X509) *X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx)
return
ctx
->
untrusted
;
}
void
X509_STORE_CTX_set0_untrusted
(
X509_STORE_CTX
*
ctx
,
STACK_OF
(
X509
)
*
sk
)
{
ctx
->
untrusted
=
sk
;
}
void
X509_STORE_CTX_set0_verified_chain
(
X509_STORE_CTX
*
ctx
,
STACK_OF
(
X509
)
*
sk
)
{
sk_X509_pop_free
(
ctx
->
chain
,
X509_free
);
...
...
doc/crypto/X509_STORE_CTX_new.pod
浏览文件 @
4dba585f
...
...
@@ -8,7 +8,7 @@ X509_STORE_CTX_set0_crls,
X509_STORE_CTX_get0_chain, X509_STORE_CTX_set0_verified_chain,
X509_STORE_CTX_get0_param, X509_STORE_CTX_set0_param,
X509_STORE_CTX_get0_cert,
X509_STORE_CTX_get0_untrusted,
X509_STORE_CTX_get0_untrusted,
X509_STORE_CTX_set0_untrusted,
X509_STORE_CTX_get_num_untrusted,
X509_STORE_CTX_set_default,
X509_STORE_CTX_get_verify_cb,
...
...
@@ -39,6 +39,7 @@ X509_STORE_CTX_get_verify - X509_STORE_CTX initialisation
X509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx);
void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);
...
...
@@ -101,6 +102,9 @@ certificate being verified by the B<ctx>.
X509_STORE_CTX_get0_untrusted() retrieves an internal pointer to the
stack of untrusted certifieds associated with B<ctx>.
X509_STORE_CTX_set0_untrusted() sets the internal point to the stack
of unstrusted certificates associated with B<ctx> to B<sk>.
X509_STORE_CTX_set0_param() sets the internal verification parameter pointer
to B<param>. After this call B<param> should not be used.
...
...
include/openssl/x509_vfy.h
浏览文件 @
4dba585f
...
...
@@ -306,6 +306,7 @@ void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);
X509_STORE
*
X509_STORE_CTX_get0_store
(
X509_STORE_CTX
*
ctx
);
X509
*
X509_STORE_CTX_get0_cert
(
X509_STORE_CTX
*
ctx
);
STACK_OF
(
X509
)
*
X509_STORE_CTX_get0_untrusted
(
X509_STORE_CTX
*
ctx
);
void
X509_STORE_CTX_set0_untrusted
(
X509_STORE_CTX
*
ctx
,
STACK_OF
(
X509
)
*
sk
);
typedef
int
(
*
X509_STORE_CTX_verify_cb
)(
int
,
X509_STORE_CTX
*
);
typedef
int
(
*
X509_STORE_CTX_verify
)(
X509_STORE_CTX
*
);
void
X509_STORE_CTX_set_verify_cb
(
X509_STORE_CTX
*
ctx
,
...
...
util/libcrypto.num
浏览文件 @
4dba585f
...
...
@@ -4206,3 +4206,4 @@ X509_STORE_CTX_get_verify 4079 1_1_0 EXIST::FUNCTION:
X509_STORE_CTX_get_verify_cb 4080 1_1_0 EXIST::FUNCTION:
X509_STORE_CTX_get_cert 4081 1_1_0 EXIST::FUNCTION:
X509_STORE_CTX_set0_verified_chain 4082 1_1_0 EXIST::FUNCTION:
X509_STORE_CTX_set0_untrusted 4083 1_1_0 EXIST::FUNCTION:
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录