Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
c9018bdf
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,发现更多精彩内容 >>
提交
c9018bdf
编写于
2月 05, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix various formatting issues
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
116503cd
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
2 deletion
+6
-2
apps/pkcs12.c
apps/pkcs12.c
+3
-1
crypto/pkcs12/p12_mutl.c
crypto/pkcs12/p12_mutl.c
+1
-1
crypto/pkcs12/p12_sbag.c
crypto/pkcs12/p12_sbag.c
+2
-0
未找到文件。
apps/pkcs12.c
浏览文件 @
c9018bdf
...
@@ -542,9 +542,10 @@ int pkcs12_main(int argc, char **argv)
...
@@ -542,9 +542,10 @@ int pkcs12_main(int argc, char **argv)
if
((
options
&
INFO
)
&&
PKCS12_mac_present
(
p12
))
{
if
((
options
&
INFO
)
&&
PKCS12_mac_present
(
p12
))
{
ASN1_INTEGER
*
tmaciter
;
ASN1_INTEGER
*
tmaciter
;
PKCS12_get0_mac
(
NULL
,
NULL
,
NULL
,
&
tmaciter
,
p12
);
PKCS12_get0_mac
(
NULL
,
NULL
,
NULL
,
&
tmaciter
,
p12
);
BIO_printf
(
bio_err
,
"MAC Iteration %ld
\n
"
,
BIO_printf
(
bio_err
,
"MAC Iteration %ld
\n
"
,
tmaciter
?
ASN1_INTEGER_get
(
tmaciter
)
:
1
);
tmaciter
!=
NULL
?
ASN1_INTEGER_get
(
tmaciter
)
:
1L
);
}
}
if
(
macver
)
{
if
(
macver
)
{
/* If we enter empty password try no password first */
/* If we enter empty password try no password first */
...
@@ -665,6 +666,7 @@ int dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bag, char *pass,
...
@@ -665,6 +666,7 @@ int dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bag, char *pass,
case
NID_pkcs8ShroudedKeyBag
:
case
NID_pkcs8ShroudedKeyBag
:
if
(
options
&
INFO
)
{
if
(
options
&
INFO
)
{
X509_SIG
*
tp8
;
X509_SIG
*
tp8
;
BIO_printf
(
bio_err
,
"Shrouded Keybag: "
);
BIO_printf
(
bio_err
,
"Shrouded Keybag: "
);
tp8
=
PKCS12_SAFEBAG_get0_pkcs8
(
bag
);
tp8
=
PKCS12_SAFEBAG_get0_pkcs8
(
bag
);
alg_print
(
tp8
->
algor
);
alg_print
(
tp8
->
algor
);
...
...
crypto/pkcs12/p12_mutl.c
浏览文件 @
c9018bdf
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
int
PKCS12_mac_present
(
PKCS12
*
p12
)
int
PKCS12_mac_present
(
PKCS12
*
p12
)
{
{
return
p12
->
mac
?
1
:
0
;
return
p12
->
mac
?
1
:
0
;
}
}
void
PKCS12_get0_mac
(
ASN1_OCTET_STRING
**
pmac
,
X509_ALGOR
**
pmacalg
,
void
PKCS12_get0_mac
(
ASN1_OCTET_STRING
**
pmac
,
X509_ALGOR
**
pmacalg
,
...
...
crypto/pkcs12/p12_sbag.c
浏览文件 @
c9018bdf
...
@@ -106,6 +106,7 @@ int PKCS12_SAFEBAG_get_nid(PKCS12_SAFEBAG *bag)
...
@@ -106,6 +106,7 @@ int PKCS12_SAFEBAG_get_nid(PKCS12_SAFEBAG *bag)
int
PKCS12_SAFEBAG_get_bag_nid
(
PKCS12_SAFEBAG
*
bag
)
int
PKCS12_SAFEBAG_get_bag_nid
(
PKCS12_SAFEBAG
*
bag
)
{
{
int
btype
=
PKCS12_SAFEBAG_get_nid
(
bag
);
int
btype
=
PKCS12_SAFEBAG_get_nid
(
bag
);
if
(
btype
!=
NID_certBag
||
btype
!=
NID_crlBag
||
btype
!=
NID_secretBag
)
if
(
btype
!=
NID_certBag
||
btype
!=
NID_crlBag
||
btype
!=
NID_secretBag
)
return
-
1
;
return
-
1
;
return
OBJ_obj2nid
(
bag
->
value
.
bag
->
type
);
return
OBJ_obj2nid
(
bag
->
value
.
bag
->
type
);
...
@@ -163,6 +164,7 @@ PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8)
...
@@ -163,6 +164,7 @@ PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8)
PKCS12_SAFEBAG
*
PKCS12_SAFEBAG_create0_pkcs8
(
X509_SIG
*
p8
)
PKCS12_SAFEBAG
*
PKCS12_SAFEBAG_create0_pkcs8
(
X509_SIG
*
p8
)
{
{
PKCS12_SAFEBAG
*
bag
=
PKCS12_SAFEBAG_new
();
PKCS12_SAFEBAG
*
bag
=
PKCS12_SAFEBAG_new
();
/* Set up the safe bag */
/* Set up the safe bag */
if
(
bag
==
NULL
)
{
if
(
bag
==
NULL
)
{
PKCS12err
(
PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8
,
ERR_R_MALLOC_FAILURE
);
PKCS12err
(
PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8
,
ERR_R_MALLOC_FAILURE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录