Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8e961835
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看板
提交
8e961835
编写于
1月 05, 2001
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Modify OCSP API to more closely reflect
application needs. Add OCSP library name to error code.
上级
a8312c0e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
28 deletion
+20
-28
CHANGES
CHANGES
+11
-0
crypto/err/err.c
crypto/err/err.c
+1
-0
crypto/ocsp/ocsp.h
crypto/ocsp/ocsp.h
+1
-4
crypto/ocsp/ocsp_lib.c
crypto/ocsp/ocsp_lib.c
+7
-24
未找到文件。
CHANGES
浏览文件 @
8e961835
...
...
@@ -3,6 +3,17 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
*) Change function OCSP_request_add() to OCSP_request_add0().
This doesn't copy the supplied OCSP_CERTID and avoids the
need to free up the newly created id. Change return type
to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure.
This can then be used to add extensions to the request.
Deleted OCSP_request_new(), since most of its functionality
is now in OCSP_REQUEST_new() (and the case insensitive name
clash) apart from the ability to set the request name which
will be added elsewhere.
[Steve Henson]
*) Update OCSP API. Remove obsolete extensions argument from
various functions. Extensions are now handled using the new
OCSP extension code. New simple OCSP HTTP function which
...
...
crypto/err/err.c
浏览文件 @
8e961835
...
...
@@ -163,6 +163,7 @@ static ERR_STRING_DATA ERR_str_libraries[]=
{
ERR_PACK
(
ERR_LIB_RAND
,
0
,
0
)
,
"random number generator"
},
{
ERR_PACK
(
ERR_LIB_DSO
,
0
,
0
)
,
"DSO support routines"
},
{
ERR_PACK
(
ERR_LIB_ENGINE
,
0
,
0
)
,
"engine routines"
},
{
ERR_PACK
(
ERR_LIB_OCSP
,
0
,
0
)
,
"OCSP routines"
},
{
0
,
NULL
},
};
...
...
crypto/ocsp/ocsp.h
浏览文件 @
8e961835
...
...
@@ -395,10 +395,7 @@ OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,
OCSP_CERTSTATUS
*
OCSP_cert_status_new
(
int
status
,
int
reason
,
char
*
tim
);
OCSP_REQUEST
*
OCSP_request_new
(
X509_NAME
*
name
);
int
OCSP_request_add
(
OCSP_REQUEST
*
req
,
OCSP_CERTID
*
cid
);
OCSP_ONEREQ
*
OCSP_request_add0
(
OCSP_REQUEST
*
req
,
OCSP_CERTID
*
cid
);
int
OCSP_request_sign
(
OCSP_REQUEST
*
req
,
EVP_PKEY
*
key
,
...
...
crypto/ocsp/ocsp_lib.c
浏览文件 @
8e961835
...
...
@@ -162,37 +162,20 @@ err:
return
NULL
;
}
OCSP_REQUEST
*
OCSP_request_new
(
X509_NAME
*
name
)
{
OCSP_REQUEST
*
req
=
NULL
;
if
((
req
=
OCSP_REQUEST_new
())
==
NULL
)
goto
err
;
if
(
name
)
/* optional */
{
if
(
!
(
req
->
tbsRequest
->
requestorName
=
GENERAL_NAME_new
()))
goto
err
;
req
->
tbsRequest
->
requestorName
->
type
=
GEN_DIRNAME
;
req
->
tbsRequest
->
requestorName
->
d
.
dirn
=
X509_NAME_dup
(
name
);
}
if
(
!
(
req
->
tbsRequest
->
requestList
=
sk_OCSP_ONEREQ_new
(
NULL
)))
goto
err
;
return
req
;
err:
if
(
req
)
OCSP_REQUEST_free
(
req
);
return
NULL
;
}
int
OCSP_request_add
(
OCSP_REQUEST
*
req
,
OCSP_CERTID
*
cid
)
OCSP_ONEREQ
*
OCSP_request_add0
(
OCSP_REQUEST
*
req
,
OCSP_CERTID
*
cid
)
{
OCSP_ONEREQ
*
one
=
NULL
;
if
(
!
(
one
=
OCSP_ONEREQ_new
()))
goto
err
;
if
(
one
->
reqCert
)
OCSP_CERTID_free
(
one
->
reqCert
);
if
(
!
(
one
->
reqCert
=
OCSP_CERTID_dup
(
cid
)))
goto
err
;
if
(
!
sk_OCSP_ONEREQ_push
(
req
->
tbsRequest
->
requestList
,
one
))
goto
err
;
return
1
;
one
->
reqCert
=
cid
;
if
(
req
&&
!
sk_OCSP_ONEREQ_push
(
req
->
tbsRequest
->
requestList
,
one
))
goto
err
;
return
one
;
err:
if
(
one
)
OCSP_ONEREQ_free
(
one
);
return
0
;
return
NULL
;
}
int
OCSP_request_sign
(
OCSP_REQUEST
*
req
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录