Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
19048b5c
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
19048b5c
编写于
5月 02, 2008
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New function CMS_add1_crl().
上级
156ee882
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
4 deletion
+15
-4
crypto/cms/cms.h
crypto/cms/cms.h
+1
-0
crypto/cms/cms_lib.c
crypto/cms/cms_lib.c
+9
-0
doc/crypto/CMS_add0_cert.pod
doc/crypto/CMS_add0_cert.pod
+5
-4
未找到文件。
crypto/cms/cms.h
浏览文件 @
19048b5c
...
@@ -235,6 +235,7 @@ STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
...
@@ -235,6 +235,7 @@ STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
CMS_RevocationInfoChoice
*
CMS_add0_RevocationInfoChoice
(
CMS_ContentInfo
*
cms
);
CMS_RevocationInfoChoice
*
CMS_add0_RevocationInfoChoice
(
CMS_ContentInfo
*
cms
);
int
CMS_add0_crl
(
CMS_ContentInfo
*
cms
,
X509_CRL
*
crl
);
int
CMS_add0_crl
(
CMS_ContentInfo
*
cms
,
X509_CRL
*
crl
);
int
CMS_add1_crl
(
CMS_ContentInfo
*
cms
,
X509_CRL
*
crl
);
STACK_OF
(
X509_CRL
)
*
CMS_get1_crls
(
CMS_ContentInfo
*
cms
);
STACK_OF
(
X509_CRL
)
*
CMS_get1_crls
(
CMS_ContentInfo
*
cms
);
int
CMS_SignedData_init
(
CMS_ContentInfo
*
cms
);
int
CMS_SignedData_init
(
CMS_ContentInfo
*
cms
);
...
...
crypto/cms/cms_lib.c
浏览文件 @
19048b5c
...
@@ -548,6 +548,15 @@ int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl)
...
@@ -548,6 +548,15 @@ int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl)
return
1
;
return
1
;
}
}
int
CMS_add1_crl
(
CMS_ContentInfo
*
cms
,
X509_CRL
*
crl
)
{
int
r
;
r
=
CMS_add0_crl
(
cms
,
crl
);
if
(
r
>
0
)
CRYPTO_add
(
&
crl
->
references
,
1
,
CRYPTO_LOCK_X509_CRL
);
return
r
;
}
STACK_OF
(
X509
)
*
CMS_get1_certs
(
CMS_ContentInfo
*
cms
)
STACK_OF
(
X509
)
*
CMS_get1_certs
(
CMS_ContentInfo
*
cms
)
{
{
STACK_OF
(
X509
)
*
certs
=
NULL
;
STACK_OF
(
X509
)
*
certs
=
NULL
;
...
...
doc/crypto/CMS_add0_cert.pod
浏览文件 @
19048b5c
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);
STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);
STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);
...
@@ -23,8 +24,8 @@ must be of type signed data or enveloped data.
...
@@ -23,8 +24,8 @@ must be of type signed data or enveloped data.
CMS_get1_certs() returns all certificates in B<cms>.
CMS_get1_certs() returns all certificates in B<cms>.
CMS_add0_crl() a
dds CRL B<crl> to B<cms>. CMS_get1_crls() returns any CRLs in
CMS_add0_crl() a
nd CMS_add1_crl() add CRL B<crl> to B<cms>. CMS_get1_crls()
B<cms>.
returns any CRLs in
B<cms>.
=head1 NOTES
=head1 NOTES
...
@@ -44,8 +45,8 @@ than once.
...
@@ -44,8 +45,8 @@ than once.
=head1 RETURN VALUES
=head1 RETURN VALUES
CMS_add0_cert(), CMS_add1_cert() and CMS_add0_crl()
return 1 for success and
CMS_add0_cert(), CMS_add1_cert() and CMS_add0_crl()
and CMS_add1_crl() return
0 for failure.
1 for success and
0 for failure.
CMS_get1_certs() and CMS_get1_crls() return the STACK of certificates or CRLs
CMS_get1_certs() and CMS_get1_crls() return the STACK of certificates or CRLs
or NULL if there are none or an error occurs. The only error which will occur
or NULL if there are none or an error occurs. The only error which will occur
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录