Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
bf5dcd13
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,发现更多精彩内容 >>
提交
bf5dcd13
编写于
2月 09, 1999
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More exactitude with function arguments.
上级
119f6288
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
22 addition
and
22 deletion
+22
-22
crypto/bn/bn_rand.c
crypto/bn/bn_rand.c
+1
-1
crypto/md5/md5.h
crypto/md5/md5.h
+1
-1
crypto/md5/md5_dgst.c
crypto/md5/md5_dgst.c
+3
-2
crypto/rand/md_rand.c
crypto/rand/md_rand.c
+6
-6
crypto/rand/rand.h
crypto/rand/rand.h
+3
-3
crypto/rand/rand_lib.c
crypto/rand/rand_lib.c
+1
-2
crypto/rand/randfile.c
crypto/rand/randfile.c
+1
-1
ssl/s23_clnt.c
ssl/s23_clnt.c
+1
-1
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
+1
-1
ssl/s3_srvr.c
ssl/s3_srvr.c
+1
-1
未找到文件。
crypto/bn/bn_rand.c
浏览文件 @
bf5dcd13
...
...
@@ -85,7 +85,7 @@ int bottom;
/* make a random number and set the top and bottom bits */
time
(
&
tim
);
RAND_seed
(
(
unsigned
char
*
)
&
tim
,
sizeof
(
tim
));
RAND_seed
(
&
tim
,
sizeof
(
tim
));
RAND_bytes
(
buf
,(
int
)
bytes
);
if
(
top
)
...
...
crypto/md5/md5.h
浏览文件 @
bf5dcd13
...
...
@@ -80,7 +80,7 @@ typedef struct MD5state_st
#ifndef NOPROTO
void
MD5_Init
(
MD5_CTX
*
c
);
void
MD5_Update
(
MD5_CTX
*
c
,
unsigned
char
*
data
,
unsigned
long
len
);
void
MD5_Update
(
MD5_CTX
*
c
,
const
void
*
data
,
unsigned
long
len
);
void
MD5_Final
(
unsigned
char
*
md
,
MD5_CTX
*
c
);
unsigned
char
*
MD5
(
unsigned
char
*
d
,
unsigned
long
n
,
unsigned
char
*
md
);
void
MD5_Transform
(
MD5_CTX
*
c
,
unsigned
char
*
b
);
...
...
crypto/md5/md5_dgst.c
浏览文件 @
bf5dcd13
...
...
@@ -97,11 +97,12 @@ MD5_CTX *c;
c
->
num
=
0
;
}
void
MD5_Update
(
c
,
data
,
len
)
void
MD5_Update
(
c
,
_
data
,
len
)
MD5_CTX
*
c
;
register
unsigned
char
*
data
;
const
void
*
_
data
;
unsigned
long
len
;
{
register
const
unsigned
char
*
data
=
_data
;
register
ULONG
*
p
;
int
sw
,
sc
;
ULONG
l
;
...
...
crypto/rand/md_rand.c
浏览文件 @
bf5dcd13
...
...
@@ -131,7 +131,7 @@ static long md_count[2]={0,0};
char
*
RAND_version
=
"RAND part of OpenSSL 0.9.2 31-Dec-1998"
;
static
void
ssleay_rand_cleanup
(
void
);
static
void
ssleay_rand_seed
(
unsigned
char
*
buf
,
int
num
);
static
void
ssleay_rand_seed
(
const
void
*
buf
,
int
num
);
static
void
ssleay_rand_bytes
(
unsigned
char
*
buf
,
int
num
);
RAND_METHOD
rand_ssleay_meth
=
{
...
...
@@ -156,7 +156,7 @@ static void ssleay_rand_cleanup()
}
static
void
ssleay_rand_seed
(
buf
,
num
)
unsigned
char
*
buf
;
const
void
*
buf
;
int
num
;
{
int
i
,
j
,
k
,
st_idx
,
st_num
;
...
...
@@ -249,15 +249,15 @@ int num;
CRYPTO_w_unlock
(
CRYPTO_LOCK_RAND
);
/* put in some default random data, we need more than
* just this */
RAND_seed
(
(
unsigned
char
*
)
&
m
,
sizeof
(
m
));
RAND_seed
(
&
m
,
sizeof
(
m
));
#ifndef MSDOS
l
=
getpid
();
RAND_seed
(
(
unsigned
char
*
)
&
l
,
sizeof
(
l
));
RAND_seed
(
&
l
,
sizeof
(
l
));
l
=
getuid
();
RAND_seed
(
(
unsigned
char
*
)
&
l
,
sizeof
(
l
));
RAND_seed
(
&
l
,
sizeof
(
l
));
#endif
l
=
time
(
NULL
);
RAND_seed
(
(
unsigned
char
*
)
&
l
,
sizeof
(
l
));
RAND_seed
(
&
l
,
sizeof
(
l
));
/* #ifdef DEVRANDOM */
/*
...
...
crypto/rand/rand.h
浏览文件 @
bf5dcd13
...
...
@@ -66,7 +66,7 @@ extern "C" {
typedef
struct
rand_meth_st
{
#ifndef NOPROTO
void
(
*
seed
)(
unsigned
char
*
buf
,
int
num
);
void
(
*
seed
)(
const
void
*
buf
,
int
num
);
void
(
*
bytes
)(
unsigned
char
*
buf
,
int
num
);
void
(
*
cleanup
)(
void
);
#else
...
...
@@ -81,8 +81,8 @@ void RAND_set_rand_method(RAND_METHOD *meth);
RAND_METHOD
*
RAND_get_rand_method
(
void
);
RAND_METHOD
*
RAND_SSLeay
(
void
);
void
RAND_cleanup
(
void
);
void
RAND_bytes
(
unsigned
char
*
buf
,
int
num
);
void
RAND_seed
(
unsigned
char
*
buf
,
int
num
);
void
RAND_bytes
(
unsigned
char
*
buf
,
int
num
);
void
RAND_seed
(
const
void
*
buf
,
int
num
);
int
RAND_load_file
(
const
char
*
file
,
long
max_bytes
);
int
RAND_write_file
(
const
char
*
file
);
char
*
RAND_file_name
(
char
*
file
,
int
num
);
...
...
crypto/rand/rand_lib.c
浏览文件 @
bf5dcd13
...
...
@@ -57,7 +57,6 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include <sys/types.h>
#include <time.h>
#include "rand.h"
...
...
@@ -87,7 +86,7 @@ void RAND_cleanup()
}
void
RAND_seed
(
buf
,
num
)
unsigned
char
*
buf
;
const
void
*
buf
;
int
num
;
{
if
(
rand_meth
!=
NULL
)
...
...
crypto/rand/randfile.c
浏览文件 @
bf5dcd13
...
...
@@ -84,7 +84,7 @@ long bytes;
i
=
stat
(
file
,
&
sb
);
/* If the state fails, put some crap in anyway */
RAND_seed
(
(
unsigned
char
*
)
&
sb
,
sizeof
(
sb
));
RAND_seed
(
&
sb
,
sizeof
(
sb
));
ret
+=
sizeof
(
sb
);
if
(
i
<
0
)
return
(
0
);
if
(
bytes
<=
0
)
return
(
ret
);
...
...
ssl/s23_clnt.c
浏览文件 @
bf5dcd13
...
...
@@ -113,7 +113,7 @@ SSL *s;
int
ret
=
-
1
;
int
new_state
,
state
;
RAND_seed
(
(
unsigned
char
*
)
&
Time
,
sizeof
(
Time
));
RAND_seed
(
&
Time
,
sizeof
(
Time
));
ERR_clear_error
();
clear_sys_error
();
...
...
ssl/s23_srvr.c
浏览文件 @
bf5dcd13
...
...
@@ -111,7 +111,7 @@ SSL *s;
int
ret
=
-
1
;
int
new_state
,
state
;
RAND_seed
(
(
unsigned
char
*
)
&
Time
,
sizeof
(
Time
));
RAND_seed
(
&
Time
,
sizeof
(
Time
));
ERR_clear_error
();
clear_sys_error
();
...
...
ssl/s2_clnt.c
浏览文件 @
bf5dcd13
...
...
@@ -122,7 +122,7 @@ SSL *s;
void
(
*
cb
)()
=
NULL
;
int
new_state
,
state
;
RAND_seed
(
(
unsigned
char
*
)
&
l
,
sizeof
(
l
));
RAND_seed
(
&
l
,
sizeof
(
l
));
ERR_clear_error
();
clear_sys_error
();
...
...
ssl/s2_srvr.c
浏览文件 @
bf5dcd13
...
...
@@ -123,7 +123,7 @@ SSL *s;
void
(
*
cb
)()
=
NULL
;
int
new_state
,
state
;
RAND_seed
(
(
unsigned
char
*
)
&
l
,
sizeof
(
l
));
RAND_seed
(
&
l
,
sizeof
(
l
));
ERR_clear_error
();
clear_sys_error
();
...
...
ssl/s3_clnt.c
浏览文件 @
bf5dcd13
...
...
@@ -137,7 +137,7 @@ SSL *s;
BIO
*
under
;
int
new_state
,
state
,
skip
=
0
;;
RAND_seed
(
(
unsigned
char
*
)
&
Time
,
sizeof
(
Time
));
RAND_seed
(
&
Time
,
sizeof
(
Time
));
ERR_clear_error
();
clear_sys_error
();
...
...
ssl/s3_srvr.c
浏览文件 @
bf5dcd13
...
...
@@ -138,7 +138,7 @@ SSL *s;
BIO
*
under
;
int
new_state
,
state
,
skip
=
0
;
RAND_seed
(
(
unsigned
char
*
)
&
Time
,
sizeof
(
Time
));
RAND_seed
(
&
Time
,
sizeof
(
Time
));
ERR_clear_error
();
clear_sys_error
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录