Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
d5a37b02
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看板
提交
d5a37b02
编写于
4月 06, 2008
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Give consistent return value and add error code for duplicate certificates.
上级
68190507
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
3 deletion
+10
-3
crypto/cms/cms.h
crypto/cms/cms.h
+2
-0
crypto/cms/cms_err.c
crypto/cms/cms_err.c
+3
-1
crypto/cms/cms_lib.c
crypto/cms/cms_lib.c
+5
-2
未找到文件。
crypto/cms/cms.h
浏览文件 @
d5a37b02
...
...
@@ -327,6 +327,7 @@ void ERR_load_CMS_strings(void);
/* Function codes. */
#define CMS_F_CHECK_CONTENT 99
#define CMS_F_CMS_ADD0_CERT 164
#define CMS_F_CMS_ADD0_RECIPIENT_KEY 100
#define CMS_F_CMS_ADD1_RECEIPTREQUEST 158
#define CMS_F_CMS_ADD1_RECIPIENT_CERT 101
...
...
@@ -396,6 +397,7 @@ void ERR_load_CMS_strings(void);
#define CMS_R_ADD_SIGNER_ERROR 99
#define CMS_R_CERTIFICATE_HAS_NO_KEYID 160
#define CMS_R_CERTIFICATE_VERIFY_ERROR 100
#define CMS_R_CERTIFICTATE_ALREADY_PRESENT 175
#define CMS_R_CIPHER_INITIALISATION_ERROR 101
#define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR 102
#define CMS_R_CMS_DATAFINAL_ERROR 103
...
...
crypto/cms/cms_err.c
浏览文件 @
d5a37b02
...
...
@@ -71,6 +71,7 @@
static
ERR_STRING_DATA
CMS_str_functs
[]
=
{
{
ERR_FUNC
(
CMS_F_CHECK_CONTENT
),
"CHECK_CONTENT"
},
{
ERR_FUNC
(
CMS_F_CMS_ADD0_CERT
),
"CMS_add0_cert"
},
{
ERR_FUNC
(
CMS_F_CMS_ADD0_RECIPIENT_KEY
),
"CMS_add0_recipient_key"
},
{
ERR_FUNC
(
CMS_F_CMS_ADD1_RECEIPTREQUEST
),
"CMS_add1_ReceiptRequest"
},
{
ERR_FUNC
(
CMS_F_CMS_ADD1_RECIPIENT_CERT
),
"CMS_add1_recipient_cert"
},
...
...
@@ -131,7 +132,7 @@ static ERR_STRING_DATA CMS_str_functs[]=
{
ERR_FUNC
(
CMS_F_CMS_SIGNERINFO_VERIFY
),
"CMS_SignerInfo_verify"
},
{
ERR_FUNC
(
CMS_F_CMS_SIGNERINFO_VERIFY_CERT
),
"CMS_SIGNERINFO_VERIFY_CERT"
},
{
ERR_FUNC
(
CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT
),
"CMS_SignerInfo_verify_content"
},
{
ERR_FUNC
(
CMS_F_CMS_SIGN_RECEIPT
),
"CMS_
SIGN_RECEIPT
"
},
{
ERR_FUNC
(
CMS_F_CMS_SIGN_RECEIPT
),
"CMS_
sign_receipt
"
},
{
ERR_FUNC
(
CMS_F_CMS_STREAM
),
"CMS_stream"
},
{
ERR_FUNC
(
CMS_F_CMS_UNCOMPRESS
),
"CMS_uncompress"
},
{
ERR_FUNC
(
CMS_F_CMS_VERIFY
),
"CMS_verify"
},
...
...
@@ -143,6 +144,7 @@ static ERR_STRING_DATA CMS_str_reasons[]=
{
ERR_REASON
(
CMS_R_ADD_SIGNER_ERROR
)
,
"add signer error"
},
{
ERR_REASON
(
CMS_R_CERTIFICATE_HAS_NO_KEYID
),
"certificate has no keyid"
},
{
ERR_REASON
(
CMS_R_CERTIFICATE_VERIFY_ERROR
),
"certificate verify error"
},
{
ERR_REASON
(
CMS_R_CERTIFICTATE_ALREADY_PRESENT
),
"certifictate already present"
},
{
ERR_REASON
(
CMS_R_CIPHER_INITIALISATION_ERROR
),
"cipher initialisation error"
},
{
ERR_REASON
(
CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR
),
"cipher parameter initialisation error"
},
{
ERR_REASON
(
CMS_R_CMS_DATAFINAL_ERROR
)
,
"cms datafinal error"
},
...
...
crypto/cms/cms_lib.c
浏览文件 @
d5a37b02
...
...
@@ -472,8 +472,11 @@ int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert)
if
(
cch
->
type
==
CMS_CERTCHOICE_CERT
)
{
if
(
!
X509_cmp
(
cch
->
d
.
certificate
,
cert
))
return
-
1
;
{
CMSerr
(
CMS_F_CMS_ADD0_CERT
,
CMS_R_CERTIFICTATE_ALREADY_PRESENT
);
return
0
;
}
}
}
cch
=
CMS_add0_CertificateChoices
(
cms
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录