Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
ca03109c
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看板
提交
ca03109c
编写于
1月 06, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New functions SSL_get_finished, SSL_get_peer_finished.
Add short state string for MS SGC.
上级
9fb617e2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
50 addition
and
1 deletion
+50
-1
CHANGES
CHANGES
+10
-1
ssl/ssl.h
ssl/ssl.h
+7
-0
ssl/ssl_lib.c
ssl/ssl_lib.c
+32
-0
ssl/ssl_stat.c
ssl/ssl_stat.c
+1
-0
未找到文件。
CHANGES
浏览文件 @
ca03109c
...
...
@@ -4,7 +4,16 @@
Changes between 0.9.4 and 0.9.5 [xx XXX 1999]
*) Clean up 'Finished' handling.
*) Clean up 'Finished' handling, and add functions SSL_get_finished and
SSL_get_peer_finished to allow applications to obtain the latest
Finished messages sent to the peer or expected from the peer,
respectively. (SSL_get_peer_finished is usually the Finished message
actually received from the peer, otherwise the protocol will be aborted.)
As the Finished message are message digests of the complete handshake
(with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
be used for external authentication procedures when the authentication
provided by SSL/TLS is not desired or is not enough.
[Bodo Moeller]
*) Enhanced support for Alpha Linux is added. Now ./config checks if
...
...
ssl/ssl.h
浏览文件 @
ca03109c
...
...
@@ -704,6 +704,13 @@ struct ssl_st
#define SSL_ST_READ_BODY 0xF1
#define SSL_ST_READ_DONE 0xF2
/* Obtain latest Finished message
* -- that we sent (SSL_get_finished)
* -- that we expected from peer (SSL_get_peer_finished).
* Returns length (0 == no Finished so far), copies up to 'count' bytes. */
size_t
SSL_get_finished
(
SSL
*
s
,
void
*
buf
,
size_t
count
);
size_t
SSL_get_peer_finished
(
SSL
*
s
,
void
*
buf
,
size_t
count
);
/* use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 2 options
* are 'ored' with SSL_VERIFY_PEER if they are desired */
#define SSL_VERIFY_NONE 0x00
...
...
ssl/ssl_lib.c
浏览文件 @
ca03109c
...
...
@@ -477,6 +477,38 @@ err:
}
#endif
/* return length of latest Finished message we sent, copy to 'buf' */
size_t
SSL_get_finished
(
SSL
*
s
,
void
*
buf
,
size_t
count
)
{
size_t
ret
=
0
;
if
(
s
->
s3
!=
NULL
)
{
ret
=
s
->
s3
->
tmp
.
finish_md_len
;
if
(
count
>
ret
)
count
=
ret
;
memcpy
(
buf
,
s
->
s3
->
tmp
.
finish_md
,
count
);
}
return
ret
;
}
/* return length of latest Finished message we expected, copy to 'buf' */
size_t
SSL_get_peer_finished
(
SSL
*
s
,
void
*
buf
,
size_t
count
)
{
size_t
ret
=
0
;
if
(
s
->
s3
!=
NULL
)
{
ret
=
s
->
s3
->
tmp
.
peer_finish_md_len
;
if
(
count
>
ret
)
count
=
ret
;
memcpy
(
buf
,
s
->
s3
->
tmp
.
peer_finish_md
,
count
);
}
return
ret
;
}
int
SSL_get_verify_mode
(
SSL
*
s
)
{
return
(
s
->
verify_mode
);
...
...
ssl/ssl_stat.c
浏览文件 @
ca03109c
...
...
@@ -313,6 +313,7 @@ case SSL3_ST_SW_HELLO_REQ_C: str="3WHR_C"; break;
case
SSL3_ST_SR_CLNT_HELLO_A
:
str
=
"3RCH_A"
;
break
;
case
SSL3_ST_SR_CLNT_HELLO_B
:
str
=
"3RCH_B"
;
break
;
case
SSL3_ST_SR_CLNT_HELLO_C
:
str
=
"3RCH_C"
;
break
;
case
SSL3_ST_SR_MS_SGC
:
str
=
"3RMSSG"
;
break
;
case
SSL3_ST_SW_SRVR_HELLO_A
:
str
=
"3WSH_A"
;
break
;
case
SSL3_ST_SW_SRVR_HELLO_B
:
str
=
"3WSH_B"
;
break
;
case
SSL3_ST_SW_CERT_A
:
str
=
"3WSC_A"
;
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录