Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
51227177
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
8
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
51227177
编写于
4月 25, 2016
作者:
V
Viktor Dukhovni
提交者:
Rich Salz
4月 25, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added missing X509_STORE_CTX_set_error_depth() accessor
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
2036fd50
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
7 deletion
+18
-7
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+5
-0
doc/crypto/X509_STORE_CTX_get_error.pod
doc/crypto/X509_STORE_CTX_get_error.pod
+12
-7
include/openssl/x509_vfy.h
include/openssl/x509_vfy.h
+1
-0
未找到文件。
crypto/x509/x509_vfy.c
浏览文件 @
51227177
...
...
@@ -1989,6 +1989,11 @@ int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx)
return
ctx
->
error_depth
;
}
void
X509_STORE_CTX_set_error_depth
(
X509_STORE_CTX
*
ctx
,
int
depth
)
{
ctx
->
error_depth
=
depth
;
}
X509
*
X509_STORE_CTX_get_current_cert
(
X509_STORE_CTX
*
ctx
)
{
return
ctx
->
current_cert
;
...
...
doc/crypto/X509_STORE_CTX_get_error.pod
浏览文件 @
51227177
...
...
@@ -3,8 +3,8 @@
=head1 NAME
X509_STORE_CTX_get_error, X509_STORE_CTX_set_error,
X509_STORE_CTX_get_error_depth, X509_STORE_CTX_
get_current_cert
,
X509_STORE_CTX_get0_cert,
X509_STORE_CTX_get_error_depth, X509_STORE_CTX_
set_error_depth
,
X509_STORE_CTX_get
_current_cert, X509_STORE_CTX_get
0_cert,
X509_STORE_CTX_get1_chain, X509_verify_cert_error_string - get or set certificate verification status information
=head1 SYNOPSIS
...
...
@@ -12,11 +12,12 @@ X509_STORE_CTX_get1_chain, X509_verify_cert_error_string - get or set certificat
#include <openssl/x509.h>
#include <openssl/x509_vfy.h>
int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
X509 * X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);
X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
X509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);
...
...
@@ -39,6 +40,10 @@ non-negative integer representing where in the certificate chain the error
occurred. If it is zero it occurred in the end entity certificate, one if
it is the certificate which signed the end entity certificate and so on.
X509_STORE_CTX_set_error_depth() sets the error B<depth>.
This can be used in combination with X509_STORE_CTX_set_error() to set the
depth at which an error condition was detected.
X509_STORE_CTX_get0_cert() returns the leaf certificate being verified.
X509_STORE_CTX_get_current_cert() returns the certificate in B<ctx> which
...
...
include/openssl/x509_vfy.h
浏览文件 @
51227177
...
...
@@ -366,6 +366,7 @@ void *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx);
int
X509_STORE_CTX_get_error
(
X509_STORE_CTX
*
ctx
);
void
X509_STORE_CTX_set_error
(
X509_STORE_CTX
*
ctx
,
int
s
);
int
X509_STORE_CTX_get_error_depth
(
X509_STORE_CTX
*
ctx
);
void
X509_STORE_CTX_set_error_depth
(
X509_STORE_CTX
*
ctx
,
int
depth
);
X509
*
X509_STORE_CTX_get_current_cert
(
X509_STORE_CTX
*
ctx
);
X509
*
X509_STORE_CTX_get0_current_issuer
(
X509_STORE_CTX
*
ctx
);
X509_CRL
*
X509_STORE_CTX_get0_current_crl
(
X509_STORE_CTX
*
ctx
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录