Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
3fc59c84
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看板
提交
3fc59c84
编写于
6月 01, 2008
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow ENGINE client cert callback to specify a set of other certs, for
the rest of the certificate chain. Currently unused.
上级
c61915c6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
4 deletion
+5
-4
crypto/engine/eng_pkey.c
crypto/engine/eng_pkey.c
+2
-2
crypto/engine/engine.h
crypto/engine/engine.h
+2
-1
ssl/s3_clnt.c
ssl/s3_clnt.c
+1
-1
未找到文件。
crypto/engine/eng_pkey.c
浏览文件 @
3fc59c84
...
...
@@ -167,7 +167,7 @@ EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,
int
ENGINE_load_ssl_client_cert
(
ENGINE
*
e
,
SSL
*
s
,
STACK_OF
(
X509_NAME
)
*
ca_dn
,
X509
**
pcert
,
EVP_PKEY
**
ppkey
,
UI_METHOD
*
ui_method
,
void
*
callback_data
)
STACK_OF
(
X509
)
**
pother
,
UI_METHOD
*
ui_method
,
void
*
callback_data
)
{
if
(
e
==
NULL
)
...
...
@@ -191,6 +191,6 @@ int ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s,
ENGINE_R_NO_LOAD_FUNCTION
);
return
0
;
}
return
e
->
load_ssl_client_cert
(
e
,
s
,
ca_dn
,
pcert
,
ppkey
,
return
e
->
load_ssl_client_cert
(
e
,
s
,
ca_dn
,
pcert
,
ppkey
,
pother
,
ui_method
,
callback_data
);
}
crypto/engine/engine.h
浏览文件 @
3fc59c84
...
...
@@ -282,7 +282,7 @@ typedef EVP_PKEY * (*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,
UI_METHOD
*
ui_method
,
void
*
callback_data
);
typedef
int
(
*
ENGINE_SSL_CLIENT_CERT_PTR
)(
ENGINE
*
,
SSL
*
ssl
,
STACK_OF
(
X509_NAME
)
*
ca_dn
,
X509
**
pcert
,
EVP_PKEY
**
pkey
,
UI_METHOD
*
ui_method
,
void
*
callback_data
);
STACK_OF
(
X509
)
**
pother
,
UI_METHOD
*
ui_method
,
void
*
callback_data
);
/* These callback types are for an ENGINE's handler for cipher and digest logic.
* These handlers have these prototypes;
* int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid);
...
...
@@ -564,6 +564,7 @@ EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,
UI_METHOD
*
ui_method
,
void
*
callback_data
);
int
ENGINE_load_ssl_client_cert
(
ENGINE
*
e
,
SSL
*
s
,
STACK_OF
(
X509_NAME
)
*
ca_dn
,
X509
**
pcert
,
EVP_PKEY
**
ppkey
,
STACK_OF
(
X509
)
**
pother
,
UI_METHOD
*
ui_method
,
void
*
callback_data
);
/* This returns a pointer for the current ENGINE structure that
...
...
ssl/s3_clnt.c
浏览文件 @
3fc59c84
...
...
@@ -2959,7 +2959,7 @@ int ssl_do_client_cert_cb(SSL *s, X509 **px509, EVP_PKEY **ppkey)
{
i
=
ENGINE_load_ssl_client_cert
(
s
->
ctx
->
client_cert_engine
,
s
,
SSL_get_client_CA_list
(
s
),
px509
,
ppkey
,
NULL
,
NULL
);
px509
,
ppkey
,
NULL
,
NULL
,
NULL
);
if
(
i
!=
0
)
return
i
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录