Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8adc1cb8
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看板
提交
8adc1cb8
编写于
8月 17, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Constify X509_get0_signature()
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
8900f3e3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
6 deletion
+10
-6
apps/x509.c
apps/x509.c
+2
-1
crypto/x509/t_x509.c
crypto/x509/t_x509.c
+2
-2
crypto/x509/x_x509.c
crypto/x509/x_x509.c
+2
-1
doc/crypto/X509_get0_signature.pod
doc/crypto/X509_get0_signature.pod
+2
-1
include/openssl/x509.h
include/openssl/x509.h
+2
-1
未找到文件。
apps/x509.c
浏览文件 @
8adc1cb8
...
...
@@ -604,7 +604,8 @@ int x509_main(int argc, char **argv)
}
if
(
badsig
)
{
ASN1_BIT_STRING
*
signature
;
const
ASN1_BIT_STRING
*
signature
;
X509_get0_signature
(
&
signature
,
NULL
,
x
);
corrupt_signature
(
signature
);
}
...
...
crypto/x509/t_x509.c
浏览文件 @
8adc1cb8
...
...
@@ -191,8 +191,8 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
X509_get0_extensions
(
x
),
cflag
,
8
);
if
(
!
(
cflag
&
X509_FLAG_NO_SIGDUMP
))
{
X509_ALGOR
*
sig_alg
;
ASN1_BIT_STRING
*
sig
;
const
X509_ALGOR
*
sig_alg
;
const
ASN1_BIT_STRING
*
sig
;
X509_get0_signature
(
&
sig
,
&
sig_alg
,
x
);
if
(
X509_signature_print
(
bp
,
sig_alg
,
sig
)
<=
0
)
goto
err
;
...
...
crypto/x509/x_x509.c
浏览文件 @
8adc1cb8
...
...
@@ -209,7 +209,8 @@ int i2d_re_X509_tbs(X509 *x, unsigned char **pp)
return
i2d_X509_CINF
(
&
x
->
cert_info
,
pp
);
}
void
X509_get0_signature
(
ASN1_BIT_STRING
**
psig
,
X509_ALGOR
**
palg
,
X509
*
x
)
void
X509_get0_signature
(
const
ASN1_BIT_STRING
**
psig
,
const
X509_ALGOR
**
palg
,
const
X509
*
x
)
{
if
(
psig
)
*
psig
=
&
x
->
signature
;
...
...
doc/crypto/X509_get0_signature.pod
浏览文件 @
8adc1cb8
...
...
@@ -10,7 +10,8 @@ X509_CRL_get_signature_nid - signature information
#include <openssl/x509.h>
void X509_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg,
void X509_get0_signature(const ASN1_BIT_STRING **psig,
const X509_ALGOR **palg,
const X509 *x);
int X509_get_signature_nid(const X509 *x);
const X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x);
...
...
include/openssl/x509.h
浏览文件 @
8adc1cb8
...
...
@@ -548,7 +548,8 @@ X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length);
int
i2d_re_X509_tbs
(
X509
*
x
,
unsigned
char
**
pp
);
void
X509_get0_signature
(
ASN1_BIT_STRING
**
psig
,
X509_ALGOR
**
palg
,
X509
*
x
);
void
X509_get0_signature
(
const
ASN1_BIT_STRING
**
psig
,
const
X509_ALGOR
**
palg
,
const
X509
*
x
);
int
X509_get_signature_nid
(
const
X509
*
x
);
int
X509_trusted
(
const
X509
*
x
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录