Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
5430200b
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5430200b
编写于
12月 08, 2009
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add ctrl and macro so we can determine if peer support secure renegotiation.
上级
13f6d57b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
0 deletion
+17
-0
CHANGES
CHANGES
+5
-0
apps/s_client.c
apps/s_client.c
+2
-0
apps/s_server.c
apps/s_server.c
+2
-0
ssl/ssl.h
ssl/ssl.h
+4
-0
ssl/ssl_lib.c
ssl/ssl_lib.c
+4
-0
未找到文件。
CHANGES
浏览文件 @
5430200b
...
...
@@ -863,6 +863,11 @@
Changes between 0.9.8l (?) and 0.9.8m (?) [xx XXX xxxx]
*) Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if
peer supports secure renegotiation and 0 otherwise. Print out peer
renegotiation support in s_client/s_server.
[Steve Henson]
*) Replace the highly broken and deprecated SPKAC certification method with
the updated NID creation version. This should correctly handle UTF8.
[Steve Henson]
...
...
apps/s_client.c
浏览文件 @
5430200b
...
...
@@ -1730,6 +1730,8 @@ static void print_stuff(BIO *bio, SSL *s, int full)
EVP_PKEY_bits
(
pktmp
));
EVP_PKEY_free
(
pktmp
);
}
BIO_printf
(
bio
,
"Secure Renegotiation IS%s supported
\n
"
,
SSL_get_secure_renegotiation_support
(
s
)
?
""
:
" NOT"
);
#ifndef OPENSSL_NO_COMP
comp
=
SSL_get_current_compression
(
s
);
expansion
=
SSL_get_current_expansion
(
s
);
...
...
apps/s_server.c
浏览文件 @
5430200b
...
...
@@ -2215,6 +2215,8 @@ static int init_ssl_connection(SSL *con)
con
->
kssl_ctx
->
client_princ
);
}
#endif
/* OPENSSL_NO_KRB5 */
BIO_printf
(
bio_s_out
,
"Secure Renegotiation IS%s supported
\n
"
,
SSL_get_secure_renegotiation_support
(
con
)
?
""
:
" NOT"
);
return
(
1
);
}
...
...
ssl/ssl.h
浏览文件 @
5430200b
...
...
@@ -625,6 +625,8 @@ typedef struct ssl_session_st
#define SSL_set_mtu(ssl, mtu) \
SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)
#define SSL_get_secure_renegotiation_support(ssl) \
SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)
void
SSL_CTX_set_msg_callback
(
SSL_CTX
*
ctx
,
void
(
*
cb
)(
int
write_p
,
int
version
,
int
content_type
,
const
void
*
buf
,
size_t
len
,
SSL
*
ssl
,
void
*
arg
));
void
SSL_set_msg_callback
(
SSL
*
ssl
,
void
(
*
cb
)(
int
write_p
,
int
version
,
int
content_type
,
const
void
*
buf
,
size_t
len
,
SSL
*
ssl
,
void
*
arg
));
...
...
@@ -1374,6 +1376,8 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)
#define SSL_CTRL_SET_MAX_SEND_FRAGMENT 52
#define SSL_CTRL_GET_RI_SUPPORT 53
/* see tls1.h for macros based on these */
#ifndef OPENSSL_NO_TLSEXT
#define SSL_CTRL_SET_TLSEXT_SERVERNAME_CB 53
...
...
ssl/ssl_lib.c
浏览文件 @
5430200b
...
...
@@ -1062,6 +1062,10 @@ long SSL_ctrl(SSL *s,int cmd,long larg,void *parg)
return
0
;
s
->
max_send_fragment
=
larg
;
return
1
;
case
SSL_CTRL_GET_RI_SUPPORT
:
if
(
s
->
s3
)
return
s
->
s3
->
send_connection_binding
;
else
return
0
;
default:
return
(
s
->
method
->
ssl_ctrl
(
s
,
cmd
,
larg
,
parg
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录