Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
049f5bbc
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看板
提交
049f5bbc
编写于
5月 06, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Constify PKCS12_newpass()
PR#4449 Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
c95a8b4e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
11 deletion
+13
-11
crypto/pkcs12/p12_npas.c
crypto/pkcs12/p12_npas.c
+11
-9
doc/crypto/PKCS12_newpass.pod
doc/crypto/PKCS12_newpass.pod
+1
-1
include/openssl/pkcs12.h
include/openssl/pkcs12.h
+1
-1
未找到文件。
crypto/pkcs12/p12_npas.c
浏览文件 @
049f5bbc
...
...
@@ -66,17 +66,18 @@
/* PKCS#12 password change routine */
static
int
newpass_p12
(
PKCS12
*
p12
,
char
*
oldpass
,
char
*
newpass
);
static
int
newpass_bags
(
STACK_OF
(
PKCS12_SAFEBAG
)
*
bags
,
char
*
oldpass
,
char
*
newpass
);
static
int
newpass_bag
(
PKCS12_SAFEBAG
*
bag
,
char
*
oldpass
,
char
*
newpass
);
static
int
newpass_p12
(
PKCS12
*
p12
,
const
char
*
oldpass
,
const
char
*
newpass
);
static
int
newpass_bags
(
STACK_OF
(
PKCS12_SAFEBAG
)
*
bags
,
const
char
*
oldpass
,
const
char
*
newpass
);
static
int
newpass_bag
(
PKCS12_SAFEBAG
*
bag
,
const
char
*
oldpass
,
const
char
*
newpass
);
static
int
alg_get
(
X509_ALGOR
*
alg
,
int
*
pnid
,
int
*
piter
,
int
*
psaltlen
);
/*
* Change the password on a PKCS#12 structure.
*/
int
PKCS12_newpass
(
PKCS12
*
p12
,
c
har
*
oldpass
,
char
*
newpass
)
int
PKCS12_newpass
(
PKCS12
*
p12
,
c
onst
char
*
oldpass
,
const
char
*
newpass
)
{
/* Check for NULL PKCS12 structure */
...
...
@@ -103,7 +104,7 @@ int PKCS12_newpass(PKCS12 *p12, char *oldpass, char *newpass)
/* Parse the outer PKCS#12 structure */
static
int
newpass_p12
(
PKCS12
*
p12
,
c
har
*
oldpass
,
char
*
newpass
)
static
int
newpass_p12
(
PKCS12
*
p12
,
c
onst
char
*
oldpass
,
const
char
*
newpass
)
{
STACK_OF
(
PKCS7
)
*
asafes
=
NULL
,
*
newsafes
=
NULL
;
STACK_OF
(
PKCS12_SAFEBAG
)
*
bags
=
NULL
;
...
...
@@ -177,8 +178,8 @@ err:
return
rv
;
}
static
int
newpass_bags
(
STACK_OF
(
PKCS12_SAFEBAG
)
*
bags
,
char
*
oldpass
,
char
*
newpass
)
static
int
newpass_bags
(
STACK_OF
(
PKCS12_SAFEBAG
)
*
bags
,
c
onst
c
har
*
oldpass
,
c
onst
c
har
*
newpass
)
{
int
i
;
for
(
i
=
0
;
i
<
sk_PKCS12_SAFEBAG_num
(
bags
);
i
++
)
{
...
...
@@ -190,7 +191,8 @@ static int newpass_bags(STACK_OF(PKCS12_SAFEBAG) *bags, char *oldpass,
/* Change password of safebag: only needs handle shrouded keybags */
static
int
newpass_bag
(
PKCS12_SAFEBAG
*
bag
,
char
*
oldpass
,
char
*
newpass
)
static
int
newpass_bag
(
PKCS12_SAFEBAG
*
bag
,
const
char
*
oldpass
,
const
char
*
newpass
)
{
PKCS8_PRIV_KEY_INFO
*
p8
;
X509_SIG
*
p8new
;
...
...
doc/crypto/PKCS12_newpass.pod
浏览文件 @
049f5bbc
...
...
@@ -8,7 +8,7 @@ PKCS12_newpass - change the password of a PKCS12 structure
#include <openssl/pkcs12.h>
int PKCS12_newpass(PKCS12 *p12, c
har *oldpass,
char *newpass);
int PKCS12_newpass(PKCS12 *p12, c
onst char *oldpass, const
char *newpass);
=head1 DESCRIPTION
...
...
include/openssl/pkcs12.h
浏览文件 @
049f5bbc
...
...
@@ -253,7 +253,7 @@ int i2d_PKCS12_bio(BIO *bp, PKCS12 *p12);
int
i2d_PKCS12_fp
(
FILE
*
fp
,
PKCS12
*
p12
);
PKCS12
*
d2i_PKCS12_bio
(
BIO
*
bp
,
PKCS12
**
p12
);
PKCS12
*
d2i_PKCS12_fp
(
FILE
*
fp
,
PKCS12
**
p12
);
int
PKCS12_newpass
(
PKCS12
*
p12
,
c
har
*
oldpass
,
char
*
newpass
);
int
PKCS12_newpass
(
PKCS12
*
p12
,
c
onst
char
*
oldpass
,
const
char
*
newpass
);
/* BEGIN ERROR CODES */
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录