Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
07ef6129
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,发现更多精彩内容 >>
提交
07ef6129
编写于
3月 13, 2006
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Resolve signed vs. unsigned issues
上级
019fdc78
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
7 deletion
+7
-7
ssl/s3_srvr.c
ssl/s3_srvr.c
+2
-2
ssl/ssl_asn1.c
ssl/ssl_asn1.c
+4
-4
ssl/t1_lib.c
ssl/t1_lib.c
+1
-1
未找到文件。
ssl/s3_srvr.c
浏览文件 @
07ef6129
...
...
@@ -1514,7 +1514,7 @@ int ssl3_send_server_key_exchange(SSL *s)
{
/* copy PSK identity hint */
s2n
(
strlen
(
s
->
ctx
->
psk_identity_hint
),
p
);
strncpy
(
p
,
s
->
ctx
->
psk_identity_hint
,
strlen
(
s
->
ctx
->
psk_identity_hint
));
strncpy
(
(
char
*
)
p
,
s
->
ctx
->
psk_identity_hint
,
strlen
(
s
->
ctx
->
psk_identity_hint
));
p
+=
strlen
(
s
->
ctx
->
psk_identity_hint
);
}
#endif
...
...
@@ -2305,7 +2305,7 @@ int ssl3_get_client_key_exchange(SSL *s)
if
(
s
->
session
->
psk_identity
!=
NULL
)
OPENSSL_free
(
s
->
session
->
psk_identity
);
s
->
session
->
psk_identity
=
BUF_strdup
(
p
);
s
->
session
->
psk_identity
=
BUF_strdup
(
(
char
*
)
p
);
if
(
s
->
session
->
psk_identity
==
NULL
)
{
SSLerr
(
SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE
,
...
...
ssl/ssl_asn1.c
浏览文件 @
07ef6129
...
...
@@ -241,13 +241,13 @@ int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp)
{
a
.
psk_identity_hint
.
length
=
strlen
(
in
->
psk_identity_hint
);
a
.
psk_identity_hint
.
type
=
V_ASN1_OCTET_STRING
;
a
.
psk_identity_hint
.
data
=
in
->
psk_identity_hint
;
a
.
psk_identity_hint
.
data
=
(
unsigned
char
*
)(
in
->
psk_identity_hint
)
;
}
if
(
in
->
psk_identity
)
{
a
.
psk_identity
.
length
=
strlen
(
in
->
psk_identity
);
a
.
psk_identity
.
type
=
V_ASN1_OCTET_STRING
;
a
.
psk_identity
.
data
=
in
->
psk_identity
;
a
.
psk_identity
.
data
=
(
unsigned
char
*
)(
in
->
psk_identity
)
;
}
#endif
/* OPENSSL_NO_PSK */
...
...
@@ -548,7 +548,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
M_ASN1_D2I_get_EXP_opt
(
osp
,
d2i_ASN1_OCTET_STRING
,
8
);
if
(
os
.
data
)
{
ret
->
psk_identity_hint
=
BUF_strndup
(
os
.
data
,
os
.
length
);
ret
->
psk_identity_hint
=
BUF_strndup
(
(
char
*
)
os
.
data
,
os
.
length
);
OPENSSL_free
(
os
.
data
);
os
.
data
=
NULL
;
os
.
length
=
0
;
...
...
@@ -561,7 +561,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
M_ASN1_D2I_get_EXP_opt
(
osp
,
d2i_ASN1_OCTET_STRING
,
9
);
if
(
os
.
data
)
{
ret
->
psk_identity
=
BUF_strndup
(
os
.
data
,
os
.
length
);
ret
->
psk_identity
=
BUF_strndup
(
(
char
*
)
os
.
data
,
os
.
length
);
OPENSSL_free
(
os
.
data
);
os
.
data
=
NULL
;
os
.
length
=
0
;
...
...
ssl/t1_lib.c
浏览文件 @
07ef6129
...
...
@@ -637,7 +637,7 @@ int ssl_check_serverhello_tlsext(SSL *s)
SSLerr
(
SSL_F_TLS1_CHECK_SERVERHELLO_TLSEXT
,
SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST
);
return
-
1
;
}
list
=
s
->
session
->
tlsext_ecpointformatlist
;
list
=
(
unsigned
char
*
)(
s
->
session
->
tlsext_ecpointformatlist
)
;
for
(
i
=
0
;
i
<
s
->
session
->
tlsext_ecpointformatlist_length
;
i
++
)
{
if
(
*
(
list
++
)
==
TLSEXT_ECPOINTFORMAT_uncompressed
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录