Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
fd47c361
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,发现更多精彩内容 >>
提交
fd47c361
编写于
3月 15, 2008
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Return error if no cipher set for encrypted data type.
Update CHANGES.
上级
d9f5f07e
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
12 addition
and
3 deletion
+12
-3
CHANGES
CHANGES
+3
-3
crypto/cms/cms.h
crypto/cms/cms.h
+2
-0
crypto/cms/cms_err.c
crypto/cms/cms_err.c
+2
-0
crypto/cms/cms_smime.c
crypto/cms/cms_smime.c
+5
-0
未找到文件。
CHANGES
浏览文件 @
fd47c361
...
...
@@ -6,9 +6,9 @@
*) Initial support for Cryptographic Message Syntax (aka CMS) based
on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility,
support for data, signedData, compressedData
types currently included,
more to come. Scripts to check against RFC4134 examples draft and internal
c
onsistency
.
support for data, signedData, compressedData
, digestedData and
encryptedData types currently included, more to come. Scripts to
c
heck against RFC4134 examples draft
.
[Steve Henson]
*) Zlib compression BIO. This is a filter BIO which compressed and
...
...
crypto/cms/cms.h
浏览文件 @
fd47c361
...
...
@@ -273,6 +273,7 @@ void ERR_load_CMS_strings(void);
#define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO 148
#define CMS_F_CMS_ENCRYPTEDCONTENT_TO_BIO 138
#define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT 140
#define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT 149
#define CMS_F_CMS_ENCRYPTEDDATA_INIT_BIO 147
#define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY 141
#define CMS_F_CMS_ENCRYPTED_DATA_DECRYPT 139
...
...
@@ -322,6 +323,7 @@ void ERR_load_CMS_strings(void);
#define CMS_R_NOT_ENCRYPTED_DATA 143
#define CMS_R_NOT_KEY_TRANSPORT 114
#define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 115
#define CMS_R_NO_CIPHER 144
#define CMS_R_NO_CONTENT 116
#define CMS_R_NO_DEFAULT_DIGEST 117
#define CMS_R_NO_DIGEST_SET 118
...
...
crypto/cms/cms_err.c
浏览文件 @
fd47c361
...
...
@@ -94,6 +94,7 @@ static ERR_STRING_DATA CMS_str_functs[]=
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO
),
"CMS_ENCRYPTEDCONTENT_INIT_BIO"
},
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTEDCONTENT_TO_BIO
),
"CMS_ENCRYPTEDCONTENT_TO_BIO"
},
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTEDDATA_DECRYPT
),
"CMS_EncryptedData_decrypt"
},
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT
),
"CMS_EncryptedData_encrypt"
},
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTEDDATA_INIT_BIO
),
"CMS_ENCRYPTEDDATA_INIT_BIO"
},
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY
),
"CMS_EncryptedData_set1_key"
},
{
ERR_FUNC
(
CMS_F_CMS_ENCRYPTED_DATA_DECRYPT
),
"CMS_ENCRYPTED_DATA_DECRYPT"
},
...
...
@@ -146,6 +147,7 @@ static ERR_STRING_DATA CMS_str_reasons[]=
{
ERR_REASON
(
CMS_R_NOT_ENCRYPTED_DATA
)
,
"not encrypted data"
},
{
ERR_REASON
(
CMS_R_NOT_KEY_TRANSPORT
)
,
"not key transport"
},
{
ERR_REASON
(
CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE
),
"not supported for this key type"
},
{
ERR_REASON
(
CMS_R_NO_CIPHER
)
,
"no cipher"
},
{
ERR_REASON
(
CMS_R_NO_CONTENT
)
,
"no content"
},
{
ERR_REASON
(
CMS_R_NO_DEFAULT_DIGEST
)
,
"no default digest"
},
{
ERR_REASON
(
CMS_R_NO_DIGEST_SET
)
,
"no digest set"
},
...
...
crypto/cms/cms_smime.c
浏览文件 @
fd47c361
...
...
@@ -227,6 +227,11 @@ CMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher,
unsigned
int
flags
)
{
CMS_ContentInfo
*
cms
;
if
(
!
cipher
)
{
CMSerr
(
CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT
,
CMS_R_NO_CIPHER
);
return
NULL
;
}
cms
=
CMS_ContentInfo_new
();
if
(
!
cms
)
return
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录