Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2197494d
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看板
提交
2197494d
编写于
5月 19, 2016
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use correct EOL in headers.
RT#1817 Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
6c4be50a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
6 deletion
+23
-6
apps/cms.c
apps/cms.c
+5
-3
apps/smime.c
apps/smime.c
+5
-3
doc/apps/cms.pod
doc/apps/cms.pod
+6
-0
doc/apps/smime.pod
doc/apps/smime.pod
+7
-0
未找到文件。
apps/cms.c
浏览文件 @
2197494d
...
...
@@ -216,6 +216,7 @@ int cms_main(int argc, char **argv)
unsigned
char
*
pwri_pass
=
NULL
,
*
pwri_tmp
=
NULL
;
unsigned
char
*
secret_key
=
NULL
,
*
secret_keyid
=
NULL
;
long
ltmp
;
const
char
*
mime_eol
=
"
\n
"
;
OPTION_CHOICE
o
;
if
((
vpm
=
X509_VERIFY_PARAM_new
())
==
NULL
)
...
...
@@ -348,6 +349,7 @@ int cms_main(int argc, char **argv)
flags
|=
CMS_NOOLDMIMETYPE
;
break
;
case
OPT_CRLFEOL
:
mime_eol
=
"
\r\n
"
;
flags
|=
CMS_CRLFEOL
;
break
;
case
OPT_NOOUT
:
...
...
@@ -1040,11 +1042,11 @@ int cms_main(int argc, char **argv)
CMS_ContentInfo_print_ctx
(
out
,
cms
,
0
,
NULL
);
}
else
if
(
outformat
==
FORMAT_SMIME
)
{
if
(
to
)
BIO_printf
(
out
,
"To: %s
\n
"
,
to
);
BIO_printf
(
out
,
"To: %s
%s"
,
to
,
mime_eol
);
if
(
from
)
BIO_printf
(
out
,
"From: %s
\n
"
,
from
);
BIO_printf
(
out
,
"From: %s
%s"
,
from
,
mime_eol
);
if
(
subject
)
BIO_printf
(
out
,
"Subject: %s
\n
"
,
subject
);
BIO_printf
(
out
,
"Subject: %s
%s"
,
subject
,
mime_eol
);
if
(
operation
==
SMIME_RESIGN
)
ret
=
SMIME_write_CMS
(
out
,
cms
,
indata
,
flags
);
else
...
...
apps/smime.c
浏览文件 @
2197494d
...
...
@@ -134,6 +134,7 @@ int smime_main(int argc, char **argv)
FORMAT_PEM
;
int
vpmtouched
=
0
,
rv
=
0
;
ENGINE
*
e
=
NULL
;
const
char
*
mime_eol
=
"
\n
"
;
if
((
vpm
=
X509_VERIFY_PARAM_new
())
==
NULL
)
return
1
;
...
...
@@ -224,6 +225,7 @@ int smime_main(int argc, char **argv)
break
;
case
OPT_CRLFEOL
:
flags
|=
PKCS7_CRLFEOL
;
mime_eol
=
"
\r\n
"
;
break
;
case
OPT_RAND
:
inrand
=
opt_arg
();
...
...
@@ -574,11 +576,11 @@ int smime_main(int argc, char **argv)
PEM_write_bio_PKCS7
(
out
,
p7
);
else
{
if
(
to
)
BIO_printf
(
out
,
"To: %s
\n
"
,
to
);
BIO_printf
(
out
,
"To: %s
%s"
,
to
,
mime_eol
);
if
(
from
)
BIO_printf
(
out
,
"From: %s
\n
"
,
from
);
BIO_printf
(
out
,
"From: %s
%s"
,
from
,
mime_eol
);
if
(
subject
)
BIO_printf
(
out
,
"Subject: %s
\n
"
,
subject
);
BIO_printf
(
out
,
"Subject: %s
%s"
,
subject
,
mime_eol
);
if
(
outformat
==
FORMAT_SMIME
)
{
if
(
operation
==
SMIME_RESIGN
)
rv
=
SMIME_write_PKCS7
(
out
,
p7
,
indata
,
flags
);
...
...
doc/apps/cms.pod
浏览文件 @
2197494d
...
...
@@ -74,6 +74,7 @@ B<openssl> B<cms>
[B<-noattr>]
[B<-nosmimecap>]
[B<-binary>]
[B<-crlfeol>]
[B<-asciicrlf>]
[B<-nodetach>]
[B<-certfile file>]
...
...
@@ -340,6 +341,11 @@ effectively using CR and LF as end of line: as required by the S/MIME
specification. When this option is present no translation occurs. This
is useful when handling binary data which may not be in MIME format.
=item B<-crlfeol>
normally the output file uses a single B<LF> as end of line. When this
option is present B<CRLF> is used instead.
=item B<-asciicrlf>
when signing use ASCII CRLF format canonicalisation. This strips trailing
...
...
doc/apps/smime.pod
浏览文件 @
2197494d
...
...
@@ -14,6 +14,8 @@ B<openssl> B<smime>
[B<-resign>]
[B<-verify>]
[B<-pk7out>]
[B<-binary>]
[B<-crlfeol>]
[B<-[cipher]>]
[B<-in file>]
[B<-CAfile file>]
...
...
@@ -245,6 +247,11 @@ effectively using CR and LF as end of line: as required by the S/MIME
specification. When this option is present no translation occurs. This
is useful when handling binary data which may not be in MIME format.
=item B<-crlfeol>
normally the output file uses a single B<LF> as end of line. When this
option is present B<CRLF> is used instead.
=item B<-nodetach>
when signing a message use opaque signing: this form is more resistant
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录