Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
7bbcb2f6
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
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看板
提交
7bbcb2f6
编写于
12月 05, 2005
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid warnings on VC++ 2005.
上级
ad2695b1
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
16 addition
and
16 deletion
+16
-16
ssl/d1_clnt.c
ssl/d1_clnt.c
+2
-2
ssl/d1_srvr.c
ssl/d1_srvr.c
+2
-2
ssl/s23_clnt.c
ssl/s23_clnt.c
+2
-2
ssl/s23_srvr.c
ssl/s23_srvr.c
+1
-1
ssl/s2_clnt.c
ssl/s2_clnt.c
+1
-1
ssl/s2_srvr.c
ssl/s2_srvr.c
+1
-1
ssl/s3_clnt.c
ssl/s3_clnt.c
+2
-2
ssl/s3_srvr.c
ssl/s3_srvr.c
+2
-2
ssl/ssl_asn1.c
ssl/ssl_asn1.c
+1
-1
ssl/ssl_lib.c
ssl/ssl_lib.c
+1
-1
ssl/ssl_sess.c
ssl/ssl_sess.c
+1
-1
未找到文件。
ssl/d1_clnt.c
浏览文件 @
7bbcb2f6
...
...
@@ -144,7 +144,7 @@ IMPLEMENT_dtls1_meth_func(DTLSv1_client_method,
int
dtls1_connect
(
SSL
*
s
)
{
BUF_MEM
*
buf
=
NULL
;
unsigned
long
Time
=
time
(
NULL
),
l
;
unsigned
long
Time
=
(
unsigned
long
)
time
(
NULL
),
l
;
long
num1
;
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
int
ret
=
-
1
;
...
...
@@ -544,7 +544,7 @@ int dtls1_client_hello(SSL *s)
/* else use the pre-loaded session */
p
=
s
->
s3
->
client_random
;
Time
=
time
(
NULL
);
/* Time */
Time
=
(
unsigned
long
)
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
sizeof
(
Time
));
...
...
ssl/d1_srvr.c
浏览文件 @
7bbcb2f6
...
...
@@ -145,7 +145,7 @@ IMPLEMENT_dtls1_meth_func(DTLSv1_server_method,
int
dtls1_accept
(
SSL
*
s
)
{
BUF_MEM
*
buf
;
unsigned
long
l
,
Time
=
time
(
NULL
);
unsigned
long
l
,
Time
=
(
unsigned
long
)
time
(
NULL
);
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
long
num1
;
int
ret
=
-
1
;
...
...
@@ -667,7 +667,7 @@ int dtls1_send_server_hello(SSL *s)
{
buf
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
p
=
s
->
s3
->
server_random
;
Time
=
time
(
NULL
);
/* Time */
Time
=
(
unsigned
long
)
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
sizeof
(
Time
));
/* Do the message type and length last */
...
...
ssl/s23_clnt.c
浏览文件 @
7bbcb2f6
...
...
@@ -88,7 +88,7 @@ IMPLEMENT_ssl23_meth_func(SSLv23_client_method,
int
ssl23_connect
(
SSL
*
s
)
{
BUF_MEM
*
buf
=
NULL
;
unsigned
long
Time
=
time
(
NULL
);
unsigned
long
Time
=
(
unsigned
long
)
time
(
NULL
);
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
int
ret
=
-
1
;
int
new_state
,
state
;
...
...
@@ -236,7 +236,7 @@ static int ssl23_client_hello(SSL *s)
#endif
p
=
s
->
s3
->
client_random
;
Time
=
time
(
NULL
);
/* Time */
Time
=
(
unsigned
long
)
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
if
(
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
4
)
<=
0
)
return
-
1
;
...
...
ssl/s23_srvr.c
浏览文件 @
7bbcb2f6
...
...
@@ -140,7 +140,7 @@ IMPLEMENT_ssl23_meth_func(SSLv23_server_method,
int
ssl23_accept
(
SSL
*
s
)
{
BUF_MEM
*
buf
;
unsigned
long
Time
=
time
(
NULL
);
unsigned
long
Time
=
(
unsigned
long
)
time
(
NULL
);
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
int
ret
=
-
1
;
int
new_state
,
state
;
...
...
ssl/s2_clnt.c
浏览文件 @
7bbcb2f6
...
...
@@ -144,7 +144,7 @@ IMPLEMENT_ssl2_meth_func(SSLv2_client_method,
int
ssl2_connect
(
SSL
*
s
)
{
unsigned
long
l
=
time
(
NULL
);
unsigned
long
l
=
(
unsigned
long
)
time
(
NULL
);
BUF_MEM
*
buf
=
NULL
;
int
ret
=
-
1
;
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
...
...
ssl/s2_srvr.c
浏览文件 @
7bbcb2f6
...
...
@@ -144,7 +144,7 @@ IMPLEMENT_ssl2_meth_func(SSLv2_server_method,
int
ssl2_accept
(
SSL
*
s
)
{
unsigned
long
l
=
time
(
NULL
);
unsigned
long
l
=
(
unsigned
long
)
time
(
NULL
);
BUF_MEM
*
buf
=
NULL
;
int
ret
=
-
1
;
long
num1
;
...
...
ssl/s3_clnt.c
浏览文件 @
7bbcb2f6
...
...
@@ -159,7 +159,7 @@ IMPLEMENT_ssl3_meth_func(SSLv3_client_method,
int
ssl3_connect
(
SSL
*
s
)
{
BUF_MEM
*
buf
=
NULL
;
unsigned
long
Time
=
time
(
NULL
),
l
;
unsigned
long
Time
=
(
unsigned
long
)
time
(
NULL
),
l
;
long
num1
;
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
int
ret
=
-
1
;
...
...
@@ -541,7 +541,7 @@ int ssl3_client_hello(SSL *s)
/* else use the pre-loaded session */
p
=
s
->
s3
->
client_random
;
Time
=
time
(
NULL
);
/* Time */
Time
=
(
unsigned
long
)
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
if
(
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
4
)
<=
0
)
goto
err
;
...
...
ssl/s3_srvr.c
浏览文件 @
7bbcb2f6
...
...
@@ -164,7 +164,7 @@ IMPLEMENT_ssl3_meth_func(SSLv3_server_method,
int
ssl3_accept
(
SSL
*
s
)
{
BUF_MEM
*
buf
;
unsigned
long
l
,
Time
=
time
(
NULL
);
unsigned
long
l
,
Time
=
(
unsigned
long
)
time
(
NULL
);
void
(
*
cb
)(
const
SSL
*
ssl
,
int
type
,
int
val
)
=
NULL
;
long
num1
;
int
ret
=
-
1
;
...
...
@@ -1038,7 +1038,7 @@ int ssl3_send_server_hello(SSL *s)
{
buf
=
(
unsigned
char
*
)
s
->
init_buf
->
data
;
p
=
s
->
s3
->
server_random
;
Time
=
time
(
NULL
);
/* Time */
Time
=
(
unsigned
long
)
time
(
NULL
);
/* Time */
l2n
(
Time
,
p
);
if
(
RAND_pseudo_bytes
(
p
,
SSL3_RANDOM_SIZE
-
4
)
<=
0
)
return
-
1
;
...
...
ssl/ssl_asn1.c
浏览文件 @
7bbcb2f6
...
...
@@ -344,7 +344,7 @@ SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,
OPENSSL_free
(
ai
.
data
);
ai
.
data
=
NULL
;
ai
.
length
=
0
;
}
else
ret
->
time
=
time
(
NULL
);
ret
->
time
=
(
unsigned
long
)
time
(
NULL
);
ai
.
length
=
0
;
M_ASN1_D2I_get_EXP_opt
(
aip
,
d2i_ASN1_INTEGER
,
2
);
...
...
ssl/ssl_lib.c
浏览文件 @
7bbcb2f6
...
...
@@ -1914,7 +1914,7 @@ void ssl_update_cache(SSL *s,int mode)
?
s
->
ctx
->
stats
.
sess_connect_good
:
s
->
ctx
->
stats
.
sess_accept_good
)
&
0xff
)
==
0xff
)
{
SSL_CTX_flush_sessions
(
s
->
ctx
,
time
(
NULL
));
SSL_CTX_flush_sessions
(
s
->
ctx
,
(
unsigned
long
)
time
(
NULL
));
}
}
}
...
...
ssl/ssl_sess.c
浏览文件 @
7bbcb2f6
...
...
@@ -118,7 +118,7 @@ SSL_SESSION *SSL_SESSION_new(void)
ss
->
verify_result
=
1
;
/* avoid 0 (= X509_V_OK) just in case */
ss
->
references
=
1
;
ss
->
timeout
=
60
*
5
+
4
;
/* 5 minute timeout by default */
ss
->
time
=
time
(
NULL
);
ss
->
time
=
(
unsigned
long
)
time
(
NULL
);
ss
->
prev
=
NULL
;
ss
->
next
=
NULL
;
ss
->
compress_meth
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录