Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
dd958974
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
dd958974
编写于
2月 08, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix engine key support in utilities.
Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
2f0c9d5c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
15 deletion
+14
-15
apps/ca.c
apps/ca.c
+1
-1
apps/dgst.c
apps/dgst.c
+5
-5
apps/dsa.c
apps/dsa.c
+2
-3
apps/pkey.c
apps/pkey.c
+2
-2
apps/rsa.c
apps/rsa.c
+1
-1
apps/rsautl.c
apps/rsautl.c
+1
-1
apps/x509.c
apps/x509.c
+2
-2
未找到文件。
apps/ca.c
浏览文件 @
dd958974
...
@@ -219,7 +219,7 @@ OPTIONS ca_options[] = {
...
@@ -219,7 +219,7 @@ OPTIONS ca_options[] = {
{
"days"
,
OPT_DAYS
,
'p'
,
"Number of days to certify the cert for"
},
{
"days"
,
OPT_DAYS
,
'p'
,
"Number of days to certify the cert for"
},
{
"md"
,
OPT_MD
,
's'
,
"md to use; one of md2, md5, sha or sha1"
},
{
"md"
,
OPT_MD
,
's'
,
"md to use; one of md2, md5, sha or sha1"
},
{
"policy"
,
OPT_POLICY
,
's'
,
"The CA 'policy' to support"
},
{
"policy"
,
OPT_POLICY
,
's'
,
"The CA 'policy' to support"
},
{
"keyfile"
,
OPT_KEYFILE
,
'
<'
,
"Private key file
"
},
{
"keyfile"
,
OPT_KEYFILE
,
'
s'
,
"Private key
"
},
{
"keyform"
,
OPT_KEYFORM
,
'f'
,
"Private key file format (PEM or ENGINE)"
},
{
"keyform"
,
OPT_KEYFORM
,
'f'
,
"Private key file format (PEM or ENGINE)"
},
{
"passin"
,
OPT_PASSIN
,
's'
},
{
"passin"
,
OPT_PASSIN
,
's'
},
{
"key"
,
OPT_KEY
,
's'
,
"Key to decode the private key if it is encrypted"
},
{
"key"
,
OPT_KEY
,
's'
,
"Key to decode the private key if it is encrypted"
},
...
...
apps/dgst.c
浏览文件 @
dd958974
...
@@ -95,11 +95,11 @@ OPTIONS dgst_options[] = {
...
@@ -95,11 +95,11 @@ OPTIONS dgst_options[] = {
"Use file(s) containing random data to seed RNG or an EGD sock"
},
"Use file(s) containing random data to seed RNG or an EGD sock"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output to filename rather than stdout"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output to filename rather than stdout"
},
{
"passin"
,
OPT_PASSIN
,
's'
,
"Input file pass phrase source"
},
{
"passin"
,
OPT_PASSIN
,
's'
,
"Input file pass phrase source"
},
{
"sign"
,
OPT_SIGN
,
'
<'
,
"Sign digest using private key in file
"
},
{
"sign"
,
OPT_SIGN
,
'
s'
,
"Sign digest using private key
"
},
{
"verify"
,
OPT_VERIFY
,
'
<
'
,
{
"verify"
,
OPT_VERIFY
,
'
s
'
,
"Verify a signature using public key
in file
"
},
"Verify a signature using public key"
},
{
"prverify"
,
OPT_PRVERIFY
,
'
<
'
,
{
"prverify"
,
OPT_PRVERIFY
,
'
s
'
,
"Verify a signature using private key
in file
"
},
"Verify a signature using private key"
},
{
"signature"
,
OPT_SIGNATURE
,
'<'
,
"File with signature to verify"
},
{
"signature"
,
OPT_SIGNATURE
,
'<'
,
"File with signature to verify"
},
{
"keyform"
,
OPT_KEYFORM
,
'f'
,
"Key file format (PEM or ENGINE)"
},
{
"keyform"
,
OPT_KEYFORM
,
'f'
,
"Key file format (PEM or ENGINE)"
},
{
"hex"
,
OPT_HEX
,
'-'
,
"Print as hex dump"
},
{
"hex"
,
OPT_HEX
,
'-'
,
"Print as hex dump"
},
...
...
apps/dsa.c
浏览文件 @
dd958974
...
@@ -82,7 +82,7 @@ OPTIONS dsa_options[] = {
...
@@ -82,7 +82,7 @@ OPTIONS dsa_options[] = {
{
"help"
,
OPT_HELP
,
'-'
,
"Display this summary"
},
{
"help"
,
OPT_HELP
,
'-'
,
"Display this summary"
},
{
"inform"
,
OPT_INFORM
,
'F'
,
"Input format, DER PEM PVK"
},
{
"inform"
,
OPT_INFORM
,
'F'
,
"Input format, DER PEM PVK"
},
{
"outform"
,
OPT_OUTFORM
,
'F'
,
"Output format, DER PEM PVK"
},
{
"outform"
,
OPT_OUTFORM
,
'F'
,
"Output format, DER PEM PVK"
},
{
"in"
,
OPT_IN
,
'
<'
,
"Input file
"
},
{
"in"
,
OPT_IN
,
'
s'
,
"Input key
"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"noout"
,
OPT_NOOUT
,
'-'
,
"Don't print key out"
},
{
"noout"
,
OPT_NOOUT
,
'-'
,
"Don't print key out"
},
{
"text"
,
OPT_TEXT
,
'-'
,
"Print the key in text"
},
{
"text"
,
OPT_TEXT
,
'-'
,
"Print the key in text"
},
...
@@ -130,8 +130,7 @@ int dsa_main(int argc, char **argv)
...
@@ -130,8 +130,7 @@ int dsa_main(int argc, char **argv)
ret
=
0
;
ret
=
0
;
goto
end
;
goto
end
;
case
OPT_INFORM
:
case
OPT_INFORM
:
if
(
!
opt_format
if
(
!
opt_format
(
opt_arg
(),
OPT_FMT_ANY
,
&
informat
))
(
opt_arg
(),
OPT_FMT_PEMDER
|
OPT_FMT_PVK
,
&
informat
))
goto
opthelp
;
goto
opthelp
;
break
;
break
;
case
OPT_IN
:
case
OPT_IN
:
...
...
apps/pkey.c
浏览文件 @
dd958974
...
@@ -75,7 +75,7 @@ OPTIONS pkey_options[] = {
...
@@ -75,7 +75,7 @@ OPTIONS pkey_options[] = {
{
"outform"
,
OPT_OUTFORM
,
'F'
,
"Output format (DER or PEM)"
},
{
"outform"
,
OPT_OUTFORM
,
'F'
,
"Output format (DER or PEM)"
},
{
"passin"
,
OPT_PASSIN
,
's'
,
"Input file pass phrase source"
},
{
"passin"
,
OPT_PASSIN
,
's'
,
"Input file pass phrase source"
},
{
"passout"
,
OPT_PASSOUT
,
's'
,
"Output file pass phrase source"
},
{
"passout"
,
OPT_PASSOUT
,
's'
,
"Output file pass phrase source"
},
{
"in"
,
OPT_IN
,
'
<'
,
"Input file
"
},
{
"in"
,
OPT_IN
,
'
s'
,
"Input key
"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"pubin"
,
OPT_PUBIN
,
'-'
,
{
"pubin"
,
OPT_PUBIN
,
'-'
,
"Read public key from input (default is private key)"
},
"Read public key from input (default is private key)"
},
...
@@ -116,7 +116,7 @@ int pkey_main(int argc, char **argv)
...
@@ -116,7 +116,7 @@ int pkey_main(int argc, char **argv)
ret
=
0
;
ret
=
0
;
goto
end
;
goto
end
;
case
OPT_INFORM
:
case
OPT_INFORM
:
if
(
!
opt_format
(
opt_arg
(),
OPT_FMT_
PEMDER
,
&
informat
))
if
(
!
opt_format
(
opt_arg
(),
OPT_FMT_
ANY
,
&
informat
))
goto
opthelp
;
goto
opthelp
;
break
;
break
;
case
OPT_OUTFORM
:
case
OPT_OUTFORM
:
...
...
apps/rsa.c
浏览文件 @
dd958974
...
@@ -130,7 +130,7 @@ OPTIONS rsa_options[] = {
...
@@ -130,7 +130,7 @@ OPTIONS rsa_options[] = {
{
"help"
,
OPT_HELP
,
'-'
,
"Display this summary"
},
{
"help"
,
OPT_HELP
,
'-'
,
"Display this summary"
},
{
"inform"
,
OPT_INFORM
,
'f'
,
"Input format, one of DER NET PEM"
},
{
"inform"
,
OPT_INFORM
,
'f'
,
"Input format, one of DER NET PEM"
},
{
"outform"
,
OPT_OUTFORM
,
'f'
,
"Output format, one of DER NET PEM PVK"
},
{
"outform"
,
OPT_OUTFORM
,
'f'
,
"Output format, one of DER NET PEM PVK"
},
{
"in"
,
OPT_IN
,
'
<
'
,
"Input file"
},
{
"in"
,
OPT_IN
,
'
s
'
,
"Input file"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"pubin"
,
OPT_PUBIN
,
'-'
,
"Expect a public key in input file"
},
{
"pubin"
,
OPT_PUBIN
,
'-'
,
"Expect a public key in input file"
},
{
"pubout"
,
OPT_PUBOUT
,
'-'
,
"Output a public key"
},
{
"pubout"
,
OPT_PUBOUT
,
'-'
,
"Output a public key"
},
...
...
apps/rsautl.c
浏览文件 @
dd958974
...
@@ -86,7 +86,7 @@ OPTIONS rsautl_options[] = {
...
@@ -86,7 +86,7 @@ OPTIONS rsautl_options[] = {
{
"help"
,
OPT_HELP
,
'-'
,
"Display this summary"
},
{
"help"
,
OPT_HELP
,
'-'
,
"Display this summary"
},
{
"in"
,
OPT_IN
,
'<'
,
"Input file"
},
{
"in"
,
OPT_IN
,
'<'
,
"Input file"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"out"
,
OPT_OUT
,
'>'
,
"Output file"
},
{
"inkey"
,
OPT_INKEY
,
'
<
'
,
"Input key"
},
{
"inkey"
,
OPT_INKEY
,
'
s
'
,
"Input key"
},
{
"keyform"
,
OPT_KEYFORM
,
'E'
,
"Private key format - default PEM"
},
{
"keyform"
,
OPT_KEYFORM
,
'E'
,
"Private key format - default PEM"
},
{
"pubin"
,
OPT_PUBIN
,
'-'
,
"Input is an RSA public"
},
{
"pubin"
,
OPT_PUBIN
,
'-'
,
"Input is an RSA public"
},
{
"certin"
,
OPT_CERTIN
,
'-'
,
"Input is a cert carrying an RSA public key"
},
{
"certin"
,
OPT_CERTIN
,
'-'
,
"Input is a cert carrying an RSA public key"
},
...
...
apps/x509.c
浏览文件 @
dd958974
...
@@ -160,7 +160,7 @@ OPTIONS x509_options[] = {
...
@@ -160,7 +160,7 @@ OPTIONS x509_options[] = {
"Output a certification request object"
},
"Output a certification request object"
},
{
"req"
,
OPT_REQ
,
'-'
,
"Input is a certificate request, sign and output"
},
{
"req"
,
OPT_REQ
,
'-'
,
"Input is a certificate request, sign and output"
},
{
"CA"
,
OPT_CA
,
'<'
,
"Set the CA certificate, must be PEM format"
},
{
"CA"
,
OPT_CA
,
'<'
,
"Set the CA certificate, must be PEM format"
},
{
"CAkey"
,
OPT_CAKEY
,
'
<
'
,
{
"CAkey"
,
OPT_CAKEY
,
'
s
'
,
"The CA key, must be PEM format; if not in CAfile"
},
"The CA key, must be PEM format; if not in CAfile"
},
{
"CAcreateserial"
,
OPT_CACREATESERIAL
,
'-'
,
{
"CAcreateserial"
,
OPT_CACREATESERIAL
,
'-'
,
"Create serial number file if it does not exist"
},
"Create serial number file if it does not exist"
},
...
@@ -272,7 +272,7 @@ int x509_main(int argc, char **argv)
...
@@ -272,7 +272,7 @@ int x509_main(int argc, char **argv)
goto
opthelp
;
goto
opthelp
;
break
;
break
;
case
OPT_CAKEYFORM
:
case
OPT_CAKEYFORM
:
if
(
!
opt_format
(
opt_arg
(),
OPT_FMT_
PEMDER
,
&
CAkeyformat
))
if
(
!
opt_format
(
opt_arg
(),
OPT_FMT_
ANY
,
&
CAkeyformat
))
goto
opthelp
;
goto
opthelp
;
break
;
break
;
case
OPT_OUT
:
case
OPT_OUT
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录