Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
019fdc78
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看板
提交
019fdc78
编写于
3月 13, 2006
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix sign problems
上级
7c382796
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
4 deletion
+18
-4
ssl/ssl.h
ssl/ssl.h
+6
-4
ssl/ssl_err.c
ssl/ssl_err.c
+2
-0
ssl/t1_lib.c
ssl/t1_lib.c
+10
-0
未找到文件。
ssl/ssl.h
浏览文件 @
019fdc78
...
...
@@ -510,8 +510,8 @@ typedef struct ssl_session_st
#ifndef OPENSSL_NO_TLSEXT
char
*
tlsext_hostname
;
#ifndef OPENSSL_NO_EC
in
t
tlsext_ecpointformatlist_length
;
char
*
tlsext_ecpointformatlist
;
size_
t
tlsext_ecpointformatlist_length
;
unsigned
char
*
tlsext_ecpointformatlist
;
/* peer's list */
#endif
/* OPENSSL_NO_EC */
#endif
}
SSL_SESSION
;
...
...
@@ -1064,8 +1064,8 @@ struct ssl_st
2 : don't call servername callback, no ack in server hello
*/
#ifndef OPENSSL_NO_EC
in
t
tlsext_ecpointformatlist_length
;
char
*
tlsext_ecpointformatlist
;
size_
t
tlsext_ecpointformatlist_length
;
unsigned
char
*
tlsext_ecpointformatlist
;
/* our list */
#endif
/* OPENSSL_NO_EC */
SSL_CTX
*
initial_ctx
;
/* initial ctx, used to store sessions */
#define session_ctx initial_ctx
...
...
@@ -1764,8 +1764,10 @@ void ERR_load_SSL_strings(void);
#define SSL_F_SSL3_SETUP_KEY_BLOCK 157
#define SSL_F_SSL3_WRITE_BYTES 158
#define SSL_F_SSL3_WRITE_PENDING 159
#define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT 277
#define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK 215
#define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK 216
#define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT 278
#define SSL_F_SSL_BAD_METHOD 160
#define SSL_F_SSL_BYTES_TO_CIPHER_LIST 161
#define SSL_F_SSL_CERT_DUP 221
...
...
ssl/ssl_err.c
浏览文件 @
019fdc78
...
...
@@ -166,8 +166,10 @@ static ERR_STRING_DATA SSL_str_functs[]=
{
ERR_FUNC
(
SSL_F_SSL3_SETUP_KEY_BLOCK
),
"SSL3_SETUP_KEY_BLOCK"
},
{
ERR_FUNC
(
SSL_F_SSL3_WRITE_BYTES
),
"SSL3_WRITE_BYTES"
},
{
ERR_FUNC
(
SSL_F_SSL3_WRITE_PENDING
),
"SSL3_WRITE_PENDING"
},
{
ERR_FUNC
(
SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT
),
"SSL_ADD_CLIENTHELLO_TLSEXT"
},
{
ERR_FUNC
(
SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK
),
"SSL_add_dir_cert_subjects_to_stack"
},
{
ERR_FUNC
(
SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK
),
"SSL_add_file_cert_subjects_to_stack"
},
{
ERR_FUNC
(
SSL_F_SSL_ADD_SERVERHELLO_TLSEXT
),
"SSL_ADD_SERVERHELLO_TLSEXT"
},
{
ERR_FUNC
(
SSL_F_SSL_BAD_METHOD
),
"SSL_BAD_METHOD"
},
{
ERR_FUNC
(
SSL_F_SSL_BYTES_TO_CIPHER_LIST
),
"SSL_BYTES_TO_CIPHER_LIST"
},
{
ERR_FUNC
(
SSL_F_SSL_CERT_DUP
),
"SSL_CERT_DUP"
},
...
...
ssl/t1_lib.c
浏览文件 @
019fdc78
...
...
@@ -189,6 +189,11 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned cha
if
((
lenmax
=
limit
-
p
-
5
)
<
0
)
return
NULL
;
if
(
s
->
tlsext_ecpointformatlist_length
>
(
unsigned
long
)
lenmax
)
return
NULL
;
if
(
s
->
tlsext_ecpointformatlist_length
>
255
)
{
SSLerr
(
SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT
,
ERR_R_INTERNAL_ERROR
);
return
NULL
;
}
s2n
(
TLSEXT_TYPE_ec_point_formats
,
ret
);
s2n
(
s
->
tlsext_ecpointformatlist_length
+
1
,
ret
);
...
...
@@ -228,6 +233,11 @@ unsigned char *ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned cha
if
((
lenmax
=
limit
-
p
-
5
)
<
0
)
return
NULL
;
if
(
s
->
tlsext_ecpointformatlist_length
>
(
unsigned
long
)
lenmax
)
return
NULL
;
if
(
s
->
tlsext_ecpointformatlist_length
>
255
)
{
SSLerr
(
SSL_F_SSL_ADD_SERVERHELLO_TLSEXT
,
ERR_R_INTERNAL_ERROR
);
return
NULL
;
}
s2n
(
TLSEXT_TYPE_ec_point_formats
,
ret
);
s2n
(
s
->
tlsext_ecpointformatlist_length
+
1
,
ret
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录