Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
be7b4458
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看板
提交
be7b4458
编写于
12月 18, 2005
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Keep disclaiming 16-bit platform support. For now remove WIN16 references
from .h files...
上级
7304956e
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
16 addition
and
76 deletion
+16
-76
crypto/bf/blowfish.h
crypto/bf/blowfish.h
+1
-1
crypto/bio/bio.h
crypto/bio/bio.h
+1
-33
crypto/bio/bss_file.c
crypto/bio/bss_file.c
+1
-1
crypto/conf/conf_api.c
crypto/conf/conf_api.c
+2
-2
crypto/des/des_locl.h
crypto/des/des_locl.h
+1
-1
crypto/md4/md4.h
crypto/md4/md4.h
+1
-1
crypto/md5/md5.h
crypto/md5/md5.h
+1
-1
crypto/pem/pem.h
crypto/pem/pem.h
+1
-3
crypto/ripemd/ripemd.h
crypto/ripemd/ripemd.h
+1
-1
crypto/sha/sha.h
crypto/sha/sha.h
+1
-1
crypto/symhacks.h
crypto/symhacks.h
+1
-1
crypto/x509/by_dir.c
crypto/x509/by_dir.c
+1
-1
crypto/x509/by_file.c
crypto/x509/by_file.c
+1
-1
e_os.h
e_os.h
+2
-22
ssl/ssl3.h
ssl/ssl3.h
+0
-6
未找到文件。
crypto/bf/blowfish.h
浏览文件 @
be7b4458
...
...
@@ -79,7 +79,7 @@ extern "C" {
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
#if defined(
OPENSSL_SYS_WIN16) || defined(
__LP32__)
#if defined(__LP32__)
#define BF_LONG unsigned long
#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
#define BF_LONG unsigned long
...
...
crypto/bio/bio.h
浏览文件 @
be7b4458
...
...
@@ -257,7 +257,6 @@ typedef struct bio_st BIO;
typedef
void
bio_info_cb
(
struct
bio_st
*
,
int
,
const
char
*
,
int
,
long
,
long
);
#ifndef OPENSSL_SYS_WIN16
typedef
struct
bio_method_st
{
int
type
;
...
...
@@ -271,21 +270,6 @@ typedef struct bio_method_st
int
(
*
destroy
)(
BIO
*
);
long
(
*
callback_ctrl
)(
BIO
*
,
int
,
bio_info_cb
*
);
}
BIO_METHOD
;
#else
typedef
struct
bio_method_st
{
int
type
;
const
char
*
name
;
int
(
_far
*
bwrite
)();
int
(
_far
*
bread
)();
int
(
_far
*
bputs
)();
int
(
_far
*
bgets
)();
long
(
_far
*
ctrl
)();
int
(
_far
*
create
)();
int
(
_far
*
destroy
)();
long
(
_far
*
callback_ctrl
)();
}
BIO_METHOD
;
#endif
struct
bio_st
{
...
...
@@ -549,21 +533,10 @@ unsigned long BIO_number_read(BIO *bio);
unsigned
long
BIO_number_written
(
BIO
*
bio
);
# ifndef OPENSSL_NO_FP_API
# if defined(OPENSSL_SYS_WIN16) && defined(_WINDLL)
BIO_METHOD
*
BIO_s_file_internal
(
void
);
BIO
*
BIO_new_file_internal
(
char
*
filename
,
char
*
mode
);
BIO
*
BIO_new_fp_internal
(
FILE
*
stream
,
int
close_flag
);
# define BIO_s_file BIO_s_file_internal
# define BIO_new_file BIO_new_file_internal
# define BIO_new_fp BIO_new_fp_internal
# else
/* FP_API */
BIO_METHOD
*
BIO_s_file
(
void
);
BIO
*
BIO_new_file
(
const
char
*
filename
,
const
char
*
mode
);
BIO
*
BIO_new_fp
(
FILE
*
stream
,
int
close_flag
);
# define BIO_s_file_internal BIO_s_file
# define BIO_new_file_internal BIO_new_file
# define BIO_new_fp_internal BIO_s_file
# endif
/* FP_API */
# define BIO_s_file_internal BIO_s_file
# endif
BIO
*
BIO_new
(
BIO_METHOD
*
type
);
int
BIO_set
(
BIO
*
a
,
BIO_METHOD
*
type
);
...
...
@@ -592,13 +565,8 @@ int BIO_nread(BIO *bio, char **buf, int num);
int
BIO_nwrite0
(
BIO
*
bio
,
char
**
buf
);
int
BIO_nwrite
(
BIO
*
bio
,
char
**
buf
,
int
num
);
#ifndef OPENSSL_SYS_WIN16
long
BIO_debug_callback
(
BIO
*
bio
,
int
cmd
,
const
char
*
argp
,
int
argi
,
long
argl
,
long
ret
);
#else
long
_far
_loadds
BIO_debug_callback
(
BIO
*
bio
,
int
cmd
,
const
char
*
argp
,
int
argi
,
long
argl
,
long
ret
);
#endif
BIO_METHOD
*
BIO_s_mem
(
void
);
BIO
*
BIO_new_mem_buf
(
void
*
buf
,
int
len
);
...
...
crypto/bio/bss_file.c
浏览文件 @
be7b4458
...
...
@@ -127,7 +127,7 @@ BIO *BIO_new_file(const char *filename, const char *mode)
BIOerr
(
BIO_F_BIO_NEW_FILE
,
ERR_R_SYS_LIB
);
return
(
NULL
);
}
if
((
ret
=
BIO_new
(
BIO_s_file
_internal
()))
==
NULL
)
if
((
ret
=
BIO_new
(
BIO_s_file
()))
==
NULL
)
return
(
NULL
);
BIO_clear_flags
(
ret
,
BIO_FLAGS_UPLINK
);
/* we did fopen -> we disengage UPLINK */
...
...
crypto/conf/conf_api.c
浏览文件 @
be7b4458
...
...
@@ -145,7 +145,7 @@ char *_CONF_get_string(const CONF *conf, const char *section, const char *name)
if
(
v
!=
NULL
)
return
(
v
->
value
);
if
(
strcmp
(
section
,
"ENV"
)
==
0
)
{
p
=
G
etenv
(
name
);
p
=
g
etenv
(
name
);
if
(
p
!=
NULL
)
return
(
p
);
}
}
...
...
@@ -158,7 +158,7 @@ char *_CONF_get_string(const CONF *conf, const char *section, const char *name)
return
(
NULL
);
}
else
return
(
G
etenv
(
name
));
return
(
g
etenv
(
name
));
}
#if 0 /* There's no way to provide error checking with this function, so
...
...
crypto/des/des_locl.h
浏览文件 @
be7b4458
...
...
@@ -61,7 +61,7 @@
#include <openssl/e_os2.h>
#if defined(OPENSSL_SYS_WIN32)
|| defined(OPENSSL_SYS_WIN16)
#if defined(OPENSSL_SYS_WIN32)
#ifndef OPENSSL_SYS_MSDOS
#define OPENSSL_SYS_MSDOS
#endif
...
...
crypto/md4/md4.h
浏览文件 @
be7b4458
...
...
@@ -76,7 +76,7 @@ extern "C" {
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
#if defined(
OPENSSL_SYS_WIN16) || defined(
__LP32__)
#if defined(__LP32__)
#define MD4_LONG unsigned long
#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
#define MD4_LONG unsigned long
...
...
crypto/md5/md5.h
浏览文件 @
be7b4458
...
...
@@ -76,7 +76,7 @@ extern "C" {
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
#if defined(
OPENSSL_SYS_WIN16) || defined(
__LP32__)
#if defined(__LP32__)
#define MD5_LONG unsigned long
#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
#define MD5_LONG unsigned long
...
...
crypto/pem/pem.h
浏览文件 @
be7b4458
...
...
@@ -319,7 +319,7 @@ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
/* These are the same except they are for the declarations */
#if defined(OPENSSL_
SYS_WIN16) || defined(OPENSSL_
NO_FP_API)
#if defined(OPENSSL_NO_FP_API)
#define DECLARE_PEM_read_fp(name, type)
/**/
#define DECLARE_PEM_write_fp(name, type)
/**/
...
...
@@ -558,7 +558,6 @@ int PEM_X509_INFO_write_bio(BIO *bp,X509_INFO *xi, EVP_CIPHER *enc,
unsigned
char
*
kstr
,
int
klen
,
pem_password_cb
*
cd
,
void
*
u
);
#endif
#ifndef OPENSSL_SYS_WIN16
int
PEM_read
(
FILE
*
fp
,
char
**
name
,
char
**
header
,
unsigned
char
**
data
,
long
*
len
);
int
PEM_write
(
FILE
*
fp
,
char
*
name
,
char
*
hdr
,
unsigned
char
*
data
,
long
len
);
...
...
@@ -569,7 +568,6 @@ int PEM_ASN1_write(i2d_of_void *i2d,const char *name,FILE *fp,
int
klen
,
pem_password_cb
*
callback
,
void
*
u
);
STACK_OF
(
X509_INFO
)
*
PEM_X509_INFO_read
(
FILE
*
fp
,
STACK_OF
(
X509_INFO
)
*
sk
,
pem_password_cb
*
cb
,
void
*
u
);
#endif
int
PEM_SealInit
(
PEM_ENCODE_SEAL_CTX
*
ctx
,
EVP_CIPHER
*
type
,
EVP_MD
*
md_type
,
unsigned
char
**
ek
,
int
*
ekl
,
...
...
crypto/ripemd/ripemd.h
浏览文件 @
be7b4458
...
...
@@ -69,7 +69,7 @@ extern "C" {
#error RIPEMD is disabled.
#endif
#if defined(
OPENSSL_SYS_WIN16) || defined(
__LP32__)
#if defined(__LP32__)
#define RIPEMD160_LONG unsigned long
#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
#define RIPEMD160_LONG unsigned long
...
...
crypto/sha/sha.h
浏览文件 @
be7b4458
...
...
@@ -80,7 +80,7 @@ extern "C" {
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
#if defined(
OPENSSL_SYS_WIN16) || defined(
__LP32__)
#if defined(__LP32__)
#define SHA_LONG unsigned long
#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
#define SHA_LONG unsigned long
...
...
crypto/symhacks.h
浏览文件 @
be7b4458
...
...
@@ -346,7 +346,7 @@
/* Case insensiteve linking causes problems.... */
#if defined(OPENSSL_SYS_
WIN16) || defined(OPENSSL_SYS_
VMS) || defined(OPENSSL_SYS_OS2)
#if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2)
#undef ERR_load_CRYPTO_strings
#define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings
#undef OCSP_crlID_new
...
...
crypto/x509/by_dir.c
浏览文件 @
be7b4458
...
...
@@ -121,7 +121,7 @@ static int dir_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl,
case
X509_L_ADD_DIR
:
if
(
argl
==
X509_FILETYPE_DEFAULT
)
{
dir
=
(
char
*
)
G
etenv
(
X509_get_default_cert_dir_env
());
dir
=
(
char
*
)
g
etenv
(
X509_get_default_cert_dir_env
());
if
(
dir
)
ret
=
add_cert_dir
(
ld
,
dir
,
X509_FILETYPE_PEM
);
else
...
...
crypto/x509/by_file.c
浏览文件 @
be7b4458
...
...
@@ -100,7 +100,7 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl,
case
X509_L_FILE_LOAD
:
if
(
argl
==
X509_FILETYPE_DEFAULT
)
{
file
=
(
char
*
)
G
etenv
(
X509_get_default_cert_file_env
());
file
=
(
char
*
)
g
etenv
(
X509_get_default_cert_file_env
());
if
(
file
)
ok
=
(
X509_load_cert_crl_file
(
ctx
,
file
,
X509_FILETYPE_PEM
)
!=
0
);
...
...
e_os.h
浏览文件 @
be7b4458
...
...
@@ -123,9 +123,6 @@ extern "C" {
#if defined(OPENSSL_SYS_WIN32) && !defined(WIN32)
# define WIN32
#endif
#if defined(OPENSSL_SYS_WIN16) && !defined(WIN16)
# define WIN16
#endif
#if defined(OPENSSL_SYS_WINDOWS) && !defined(WINDOWS)
# define WINDOWS
#endif
...
...
@@ -203,7 +200,7 @@ extern "C" {
#define writesocket(s,b,n) write((s),(b),(n))
#endif
#ifdef WIN16
#ifdef WIN16
/* never the case */
# define MS_CALLBACK _far _loadds
# define MS_FAR _far
#else
...
...
@@ -295,12 +292,7 @@ static unsigned int _strlen31(const char *str)
# define _kbhit kbhit
# endif
# if defined(WIN16) && defined(SSLEAY) && defined(_WINEXITNOPERSIST)
# define EXIT(n) _wsetexit(_WINEXITNOPERSIST)
# define OPENSSL_EXIT(n) do { if (n == 0) EXIT(n); return(n); } while(0)
# else
# define EXIT(n) exit(n)
# endif
# define EXIT(n) exit(n)
# define LIST_SEPARATOR_CHAR ';'
# ifndef X_OK
# define X_OK 0
...
...
@@ -592,18 +584,6 @@ extern char *sys_errlist[]; extern int sys_nerr;
/***********************************************/
/* do we need to do this for getenv.
* Just define getenv for use under windows */
#ifdef WIN16
/* How to do this needs to be thought out a bit more.... */
/*char *GETENV(char *);
#define Getenv GETENV*/
#define Getenv getenv
#else
#define Getenv getenv
#endif
#define DG_GCC_BUG
/* gcc < 2.6.3 on DGUX */
#ifdef sgi
...
...
ssl/ssl3.h
浏览文件 @
be7b4458
...
...
@@ -256,13 +256,7 @@ extern "C" {
#define SSL_RT_MAX_CIPHER_BLOCK_SIZE 16
/* Due to MS stuffing up, this can change.... */
#if defined(OPENSSL_SYS_WIN16) || \
(defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_WIN32))
#define SSL3_RT_MAX_EXTRA (14000)
#else
#define SSL3_RT_MAX_EXTRA (16384)
#endif
/* Maximum plaintext length: defined by SSL/TLS standards */
#define SSL3_RT_MAX_PLAIN_LENGTH 16384
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录