Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
cdc7b8cc
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看板
提交
cdc7b8cc
编写于
24年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initial OCSP SSL support.
上级
720235ee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
3 deletion
+17
-3
CHANGES
CHANGES
+3
-0
apps/ocsp.c
apps/ocsp.c
+14
-3
未找到文件。
CHANGES
浏览文件 @
cdc7b8cc
...
...
@@ -3,6 +3,9 @@
Changes between 0.9.6 and 0.9.7 [xx XXX 2000]
*) Initial (incomplete) OCSP SSL support.
[Steve Henson]
*) Fix CPU detection on Irix 6.x.
[Kurt Hockenbury <khockenb@stevens-tech.edu> and
"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>]
...
...
This diff is collapsed.
Click to expand it.
apps/ocsp.c
浏览文件 @
cdc7b8cc
...
...
@@ -61,6 +61,7 @@
#include <openssl/pem.h>
#include <openssl/ocsp.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include "apps.h"
static
int
add_ocsp_cert
(
OCSP_REQUEST
**
req
,
X509
*
cert
,
X509
*
issuer
,
...
...
@@ -95,6 +96,7 @@ int MAIN(int argc, char **argv)
int
req_text
=
0
,
resp_text
=
0
;
char
*
CAfile
=
NULL
,
*
CApath
=
NULL
;
X509_STORE
*
store
=
NULL
;
SSL_CTX
*
ctx
=
NULL
;
STACK_OF
(
X509
)
*
sign_other
=
NULL
,
*
verify_other
=
NULL
;
char
*
sign_certfile
=
NULL
,
*
verify_certfile
=
NULL
;
unsigned
long
sign_flags
=
0
,
verify_flags
=
0
;
...
...
@@ -104,7 +106,7 @@ int MAIN(int argc, char **argv)
STACK
*
reqnames
=
NULL
;
STACK_OF
(
OCSP_CERTID
)
*
ids
=
NULL
;
if
(
bio_err
==
NULL
)
bio_err
=
BIO_new_fp
(
stderr
,
BIO_NOCLOSE
);
ERR_load_crypto
_strings
();
SSL_load_error
_strings
();
args
=
argv
+
1
;
reqnames
=
sk_new_null
();
ids
=
sk_OCSP_CERTID_new_null
();
...
...
@@ -451,13 +453,21 @@ int MAIN(int argc, char **argv)
goto
end
;
}
if
(
port
)
BIO_set_conn_port
(
cbio
,
port
);
if
(
use_ssl
==
1
)
{
BIO
*
sbio
;
ctx
=
SSL_CTX_new
(
SSLv23_client_method
());
SSL_CTX_set_mode
(
ctx
,
SSL_MODE_AUTO_RETRY
);
sbio
=
BIO_new_ssl
(
ctx
,
1
);
cbio
=
BIO_push
(
sbio
,
cbio
);
}
if
(
BIO_do_connect
(
cbio
)
<=
0
)
{
BIO_printf
(
bio_err
,
"Error connecting BIO
\n
"
);
goto
end
;
}
resp
=
OCSP_sendreq_bio
(
cbio
,
path
,
req
);
BIO_free
(
cbio
);
BIO_free
_all
(
cbio
);
cbio
=
NULL
;
if
(
!
resp
)
{
...
...
@@ -566,7 +576,7 @@ end:
EVP_PKEY_free
(
key
);
X509_free
(
issuer
);
X509_free
(
cert
);
BIO_free
(
cbio
);
BIO_free
_all
(
cbio
);
BIO_free
(
out
);
OCSP_REQUEST_free
(
req
);
OCSP_RESPONSE_free
(
resp
);
...
...
@@ -581,6 +591,7 @@ end:
OPENSSL_free
(
host
);
OPENSSL_free
(
port
);
OPENSSL_free
(
path
);
SSL_CTX_free
(
ctx
);
}
EXIT
(
ret
);
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部