Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
20a90e3a
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
9 个月 前同步成功
通知
8
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,体验更适合开发者的 AI 搜索 >>
提交
20a90e3a
编写于
7月 22, 2005
作者:
G
Geoff Thorpe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some signed/unsigned warnings.
上级
17a2994d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
5 deletion
+9
-5
crypto/rand/rand_unix.c
crypto/rand/rand_unix.c
+6
-3
ssl/d1_clnt.c
ssl/d1_clnt.c
+1
-1
ssl/d1_srvr.c
ssl/d1_srvr.c
+2
-1
未找到文件。
crypto/rand/rand_unix.c
浏览文件 @
20a90e3a
...
...
@@ -155,7 +155,8 @@ int RAND_poll(void)
#ifdef DEVRANDOM
static
const
char
*
randomfiles
[]
=
{
DEVRANDOM
};
struct
stat
randomstats
[
sizeof
(
randomfiles
)
/
sizeof
(
randomfiles
[
0
])];
int
fd
,
i
;
int
fd
;
unsigned
int
i
;
#endif
#ifdef DEVRANDOM_EGD
static
const
char
*
egdsockets
[]
=
{
DEVRANDOM_EGD
,
NULL
};
...
...
@@ -168,7 +169,8 @@ int RAND_poll(void)
* have this. Use /dev/urandom if you can as /dev/random may block
* if it runs out of random entries. */
for
(
i
=
0
;
i
<
sizeof
(
randomfiles
)
/
sizeof
(
randomfiles
[
0
])
&&
n
<
ENTROPY_NEEDED
;
i
++
)
for
(
i
=
0
;
(
i
<
sizeof
(
randomfiles
)
/
sizeof
(
randomfiles
[
0
]))
&&
(
n
<
ENTROPY_NEEDED
);
i
++
)
{
if
((
fd
=
open
(
randomfiles
[
i
],
O_RDONLY
#ifdef O_NONBLOCK
...
...
@@ -185,7 +187,8 @@ int RAND_poll(void)
{
struct
timeval
t
=
{
0
,
10
*
1000
};
/* Spend 10ms on
each file. */
int
r
,
j
;
int
r
;
unsigned
int
j
;
fd_set
fset
;
struct
stat
*
st
=&
randomstats
[
i
];
...
...
ssl/d1_clnt.c
浏览文件 @
20a90e3a
...
...
@@ -541,7 +541,7 @@ int dtls1_client_hello(SSL *s)
{
unsigned
char
*
buf
;
unsigned
char
*
p
,
*
d
;
int
i
,
j
;
unsigned
int
i
,
j
;
unsigned
long
Time
,
l
;
SSL_COMP
*
comp
;
...
...
ssl/d1_srvr.c
浏览文件 @
20a90e3a
...
...
@@ -677,7 +677,8 @@ int dtls1_send_server_hello(SSL *s)
{
unsigned
char
*
buf
;
unsigned
char
*
p
,
*
d
;
int
i
,
sl
;
int
i
;
unsigned
int
sl
;
unsigned
long
l
,
Time
;
if
(
s
->
state
==
SSL3_ST_SW_SRVR_HELLO_A
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录