Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
9a1e34e5
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9a1e34e5
编写于
12月 19, 1999
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MacOS updates.
上级
2b6313d0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
27 addition
and
15 deletion
+27
-15
crypto/des/enc_writ.c
crypto/des/enc_writ.c
+5
-2
crypto/md32_common.h
crypto/md32_common.h
+6
-1
crypto/objects/obj_dat.c
crypto/objects/obj_dat.c
+1
-5
crypto/rand/md_rand.c
crypto/rand/md_rand.c
+3
-3
crypto/ripemd/rmd_one.c
crypto/ripemd/rmd_one.c
+1
-1
e_os.h
e_os.h
+11
-3
未找到文件。
crypto/des/enc_writ.c
浏览文件 @
9a1e34e5
...
...
@@ -153,12 +153,15 @@ int des_enc_write(int fd, const void *_buf, int len,
{
/* eay 26/08/92 I was not doing writing from where we
* got upto. */
i
=
write
(
fd
,
&
(
outbuf
[
j
]),
outnum
-
j
);
i
=
write
(
fd
,
(
void
*
)
&
(
outbuf
[
j
]),
outnum
-
j
);
if
(
i
==
-
1
)
{
#ifdef EINTR
if
(
errno
==
EINTR
)
i
=
0
;
else
/* This is really a bad error - very bad
else
#endif
/* This is really a bad error - very bad
* It will stuff-up both ends. */
return
(
-
1
);
}
...
...
crypto/md32_common.h
浏览文件 @
9a1e34e5
...
...
@@ -182,7 +182,12 @@
# if defined(_MSC_VER)
# define ROTATE(a,n) _lrotl(a,n)
# elif defined(__MWERKS__)
# define ROTATE(a,n) __rol(a,n)
# ifdef __POWERPC__
# defined ROTATE(a,n) __rlwinm(a,n,0,31)
# else
# define ROTATE(a,n) __rol(a,n)
# endif
B
# elif defined(__GNUC__) && __GNUC__>=2 && !defined(NO_ASM)
/*
* Some GNU C inline assembler templates. Note that these are
...
...
crypto/objects/obj_dat.c
浏览文件 @
9a1e34e5
...
...
@@ -214,16 +214,12 @@ int OBJ_new_nid(int num)
int
OBJ_add_object
(
ASN1_OBJECT
*
obj
)
{
ASN1_OBJECT
*
o
;
ADDED_OBJ
*
ao
[
4
],
*
aop
;
ADDED_OBJ
*
ao
[
4
]
=
{
NULL
,
NULL
,
NULL
,
NULL
}
,
*
aop
;
int
i
;
if
(
added
==
NULL
)
if
(
!
init_added
())
return
(
0
);
if
((
o
=
OBJ_dup
(
obj
))
==
NULL
)
goto
err
;
ao
[
ADDED_DATA
]
=
NULL
;
ao
[
ADDED_SNAME
]
=
NULL
;
ao
[
ADDED_LNAME
]
=
NULL
;
ao
[
ADDED_NID
]
=
NULL
;
ao
[
ADDED_NID
]
=
(
ADDED_OBJ
*
)
Malloc
(
sizeof
(
ADDED_OBJ
));
if
((
o
->
length
!=
0
)
&&
(
obj
->
data
!=
NULL
))
ao
[
ADDED_DATA
]
=
(
ADDED_OBJ
*
)
Malloc
(
sizeof
(
ADDED_OBJ
));
...
...
crypto/rand/md_rand.c
浏览文件 @
9a1e34e5
...
...
@@ -286,7 +286,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
MD_CTX
m
;
static
int
init
=
1
;
unsigned
long
l
;
#ifndef
MSDO
S
#ifndef
GETPID_IS_MEANINGLES
S
pid_t
curr_pid
=
getpid
();
#endif
#ifdef DEVRANDOM
...
...
@@ -327,7 +327,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
/* put in some default random data, we need more than
* just this */
RAND_seed
(
&
m
,
sizeof
(
m
));
#ifndef
MSDO
S
#ifndef
GETPID_IS_MEANINGLES
S
l
=
curr_pid
;
RAND_seed
(
&
l
,
sizeof
(
l
));
l
=
getuid
();
...
...
@@ -386,7 +386,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num)
j
=
(
num
>=
MD_DIGEST_LENGTH
/
2
)
?
MD_DIGEST_LENGTH
/
2
:
num
;
num
-=
j
;
MD_Init
(
&
m
);
#ifndef
MSDO
S
#ifndef
GETPID_IS_MEANINGLES
S
if
(
curr_pid
)
/* just in the first iteration to save time */
{
MD_Update
(
&
m
,(
unsigned
char
*
)
&
curr_pid
,
sizeof
curr_pid
);
...
...
crypto/ripemd/rmd_one.c
浏览文件 @
9a1e34e5
...
...
@@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include <
memory
.h>
#include <
string
.h>
#include <openssl/ripemd.h>
unsigned
char
*
RIPEMD160
(
unsigned
char
*
d
,
unsigned
long
n
,
...
...
e_os.h
浏览文件 @
9a1e34e5
...
...
@@ -88,6 +88,8 @@ extern "C" {
# define NO_SYS_TYPES_H
# define NO_CHMOD
# define NO_SYSLOG
# undef DEVRANDOM
# define GETPID_IS_MEANINGLESS
# endif
#endif
...
...
@@ -111,6 +113,10 @@ extern "C" {
# endif
#endif
#if defined(MSDOS) && !defined(GETPID_IS_MEANINGLESS)
# define GETPID_IS_MEANINGLESS
#endif
#ifdef WIN32
#define get_last_sys_error() GetLastError()
#define clear_sys_error() SetLastError(0)
...
...
@@ -128,7 +134,7 @@ extern "C" {
#define readsocket(s,b,n) recv((s),(b),(n),0)
#define writesocket(s,b,n) send((s),(b),(n),0)
#define EADDRINUSE WSAEADDRINUSE
#elif
MAC_OS_pre_X
#elif
defined(MAC_OS_pre_X)
#define get_last_socket_error() errno
#define clear_socket_error() errno=0
#define closesocket(s) MacSocket_close(s)
...
...
@@ -245,8 +251,10 @@ extern "C" {
# endif
# else
/* !defined VMS */
# include OPENSSL_UNISTD
# include <sys/types.h>
# include OPENSLL_UNISTD
# ifndef NO_SYS_TYPES_H
# include <sys/types.h>
# endif
# define OPENSSL_CONF "openssl.cnf"
# define SSLEAY_CONF OPENSSL_CONF
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录