Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a3829cb7
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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,发现更多精彩内容 >>
提交
a3829cb7
编写于
2月 23, 2002
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updates from stable branch.
上级
e84be9b4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
14 deletion
+25
-14
crypto/evp/evp_enc.c
crypto/evp/evp_enc.c
+2
-1
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+23
-13
未找到文件。
crypto/evp/evp_enc.c
浏览文件 @
a3829cb7
...
...
@@ -77,7 +77,8 @@ void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx)
int
EVP_CipherInit
(
EVP_CIPHER_CTX
*
ctx
,
const
EVP_CIPHER
*
cipher
,
const
unsigned
char
*
key
,
const
unsigned
char
*
iv
,
int
enc
)
{
EVP_CIPHER_CTX_init
(
ctx
);
if
(
cipher
)
EVP_CIPHER_CTX_init
(
ctx
);
return
EVP_CipherInit_ex
(
ctx
,
cipher
,
NULL
,
key
,
iv
,
enc
);
}
...
...
crypto/x509/x509_vfy.c
浏览文件 @
a3829cb7
...
...
@@ -1054,10 +1054,7 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
ctx
->
cert
=
x509
;
ctx
->
untrusted
=
chain
;
ctx
->
last_untrusted
=
0
;
ctx
->
purpose
=
store
->
purpose
;
ctx
->
trust
=
store
->
trust
;
ctx
->
check_time
=
0
;
ctx
->
flags
=
0
;
ctx
->
other_ctx
=
NULL
;
ctx
->
valid
=
0
;
ctx
->
chain
=
NULL
;
...
...
@@ -1071,49 +1068,62 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
* use defaults.
*/
ctx
->
flags
=
store
->
flags
;
if
(
store
->
check_issued
)
if
(
store
)
{
ctx
->
purpose
=
store
->
purpose
;
ctx
->
trust
=
store
->
trust
;
ctx
->
flags
=
store
->
flags
;
ctx
->
cleanup
=
store
->
cleanup
;
}
else
{
ctx
->
purpose
=
0
;
ctx
->
trust
=
0
;
ctx
->
flags
=
0
;
ctx
->
cleanup
=
0
;
}
if
(
store
&&
store
->
check_issued
)
ctx
->
check_issued
=
store
->
check_issued
;
else
ctx
->
check_issued
=
check_issued
;
if
(
store
->
get_issuer
)
if
(
store
&&
store
->
get_issuer
)
ctx
->
get_issuer
=
store
->
get_issuer
;
else
ctx
->
get_issuer
=
X509_STORE_CTX_get1_issuer
;
if
(
store
->
verify_cb
)
if
(
store
&&
store
->
verify_cb
)
ctx
->
verify_cb
=
store
->
verify_cb
;
else
ctx
->
verify_cb
=
null_callback
;
if
(
store
->
verify
)
if
(
store
&&
store
->
verify
)
ctx
->
verify
=
store
->
verify
;
else
ctx
->
verify
=
internal_verify
;
if
(
store
->
check_revocation
)
if
(
store
&&
store
->
check_revocation
)
ctx
->
check_revocation
=
store
->
check_revocation
;
else
ctx
->
check_revocation
=
check_revocation
;
if
(
store
->
get_crl
)
if
(
store
&&
store
->
get_crl
)
ctx
->
get_crl
=
store
->
get_crl
;
else
ctx
->
get_crl
=
get_crl
;
if
(
store
->
check_crl
)
if
(
store
&&
store
->
check_crl
)
ctx
->
check_crl
=
store
->
check_crl
;
else
ctx
->
check_crl
=
check_crl
;
if
(
store
->
cert_crl
)
if
(
store
&&
store
->
cert_crl
)
ctx
->
cert_crl
=
store
->
cert_crl
;
else
ctx
->
cert_crl
=
cert_crl
;
ctx
->
cleanup
=
store
->
cleanup
;
/* This memset() can't make any sense anyway, so it's removed. As
* X509_STORE_CTX_cleanup does a proper "free" on the ex_data, we put a
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录