Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
40889b9c
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看板
提交
40889b9c
编写于
6月 13, 2002
作者:
L
Lutz Jänicke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add missing prototypes.
Submitted by: Goetz Babin-Ebell <babinebell@trustcenter.de> PR: 89
上级
99889b46
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
40 addition
and
22 deletion
+40
-22
apps/apps.c
apps/apps.c
+3
-3
apps/apps.h
apps/apps.h
+2
-6
apps/enc.c
apps/enc.c
+1
-1
crypto/asn1/a_strex.c
crypto/asn1/a_strex.c
+6
-5
crypto/asn1/asn1_lib.c
crypto/asn1/asn1_lib.c
+1
-0
crypto/asn1/n_pkey.c
crypto/asn1/n_pkey.c
+9
-0
crypto/asn1/tasn_typ.c
crypto/asn1/tasn_typ.c
+5
-0
crypto/conf/conf.h
crypto/conf/conf.h
+5
-3
crypto/conf/conf_lib.c
crypto/conf/conf_lib.c
+3
-2
crypto/engine/eng_cnf.c
crypto/engine/eng_cnf.c
+1
-1
crypto/engine/eng_fat.c
crypto/engine/eng_fat.c
+1
-1
crypto/rsa/rsa.h
crypto/rsa/rsa.h
+3
-0
未找到文件。
apps/apps.c
浏览文件 @
40889b9c
...
...
@@ -490,7 +490,7 @@ static int ui_close(UI *ui)
{
return
UI_method_get_closer
(
UI_OpenSSL
())(
ui
);
}
int
setup_ui_method
()
int
setup_ui_method
(
void
)
{
ui_method
=
UI_create_method
(
"OpenSSL application user interface"
);
UI_method_set_opener
(
ui_method
,
ui_open
);
...
...
@@ -499,7 +499,7 @@ int setup_ui_method()
UI_method_set_closer
(
ui_method
,
ui_close
);
return
0
;
}
void
destroy_ui_method
()
void
destroy_ui_method
(
void
)
{
if
(
ui_method
)
{
...
...
@@ -1263,7 +1263,7 @@ X509_STORE *setup_verify(BIO *bp, char *CAfile, char *CApath)
}
/* Try to load an engine in a shareable library */
ENGINE
*
try_load_engine
(
BIO
*
err
,
const
char
*
engine
,
int
debug
)
static
ENGINE
*
try_load_engine
(
BIO
*
err
,
const
char
*
engine
,
int
debug
)
{
ENGINE
*
e
=
ENGINE_by_id
(
"dynamic"
);
if
(
e
)
...
...
apps/apps.h
浏览文件 @
40889b9c
...
...
@@ -134,10 +134,6 @@ long app_RAND_load_files(char *file); /* `file' is a list of files to read,
* (see e_os.h). The string is
* destroyed! */
#ifdef OPENSSL_NO_STDIO
BIO_METHOD
*
BIO_s_file
();
#endif
#ifdef OPENSSL_SYS_WIN32
#define rename(from,to) WIN32_rename((from),(to))
int
WIN32_rename
(
char
*
oldname
,
char
*
newname
);
...
...
@@ -217,8 +213,8 @@ typedef struct pw_cb_data
int
password_callback
(
char
*
buf
,
int
bufsiz
,
int
verify
,
PW_CB_DATA
*
cb_data
);
int
setup_ui_method
();
void
destroy_ui_method
();
int
setup_ui_method
(
void
);
void
destroy_ui_method
(
void
);
int
should_retry
(
int
i
);
int
args_from_file
(
char
*
file
,
int
*
argc
,
char
**
argv
[]);
...
...
apps/enc.c
浏览文件 @
40889b9c
...
...
@@ -78,7 +78,7 @@ int set_hex(char *in,unsigned char *out,int size);
#define BSIZE (8*1024)
#define PROG enc_main
void
show_ciphers
(
const
OBJ_NAME
*
name
,
void
*
bio_
)
static
void
show_ciphers
(
const
OBJ_NAME
*
name
,
void
*
bio_
)
{
BIO
*
bio
=
bio_
;
static
int
n
;
...
...
crypto/asn1/a_strex.c
浏览文件 @
40889b9c
...
...
@@ -77,8 +77,8 @@
/* Three IO functions for sending data to memory, a BIO and
* and a FILE pointer.
*/
int
send_mem_chars
(
void
*
arg
,
const
void
*
buf
,
int
len
)
#if 0 /* never used */
static
int send_mem_chars(void *arg, const void *buf, int len)
{
unsigned char **out = arg;
if(!out) return 1;
...
...
@@ -86,15 +86,16 @@ int send_mem_chars(void *arg, const void *buf, int len)
*out += len;
return 1;
}
#endif
int
send_bio_chars
(
void
*
arg
,
const
void
*
buf
,
int
len
)
static
int
send_bio_chars
(
void
*
arg
,
const
void
*
buf
,
int
len
)
{
if
(
!
arg
)
return
1
;
if
(
BIO_write
(
arg
,
buf
,
len
)
!=
len
)
return
0
;
return
1
;
}
int
send_fp_chars
(
void
*
arg
,
const
void
*
buf
,
int
len
)
static
int
send_fp_chars
(
void
*
arg
,
const
void
*
buf
,
int
len
)
{
if
(
!
arg
)
return
1
;
if
(
fwrite
(
buf
,
1
,
len
,
arg
)
!=
(
unsigned
int
)
len
)
return
0
;
...
...
@@ -240,7 +241,7 @@ static int do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen
* #01234 format.
*/
int
do_dump
(
unsigned
long
lflags
,
char_io
*
io_ch
,
void
*
arg
,
ASN1_STRING
*
str
)
static
int
do_dump
(
unsigned
long
lflags
,
char_io
*
io_ch
,
void
*
arg
,
ASN1_STRING
*
str
)
{
/* Placing the ASN1_STRING in a temp ASN1_TYPE allows
* the DER encoding to readily obtained
...
...
crypto/asn1/asn1_lib.c
浏览文件 @
40889b9c
...
...
@@ -59,6 +59,7 @@
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1_mac.h>
static
int
asn1_get_length
(
unsigned
char
**
pp
,
int
*
inf
,
long
*
rl
,
int
max
);
static
void
asn1_put_length
(
unsigned
char
**
pp
,
int
length
);
...
...
crypto/asn1/n_pkey.c
浏览文件 @
40889b9c
...
...
@@ -92,6 +92,11 @@ ASN1_BROKEN_SEQUENCE(NETSCAPE_ENCRYPTED_PKEY) = {
ASN1_SIMPLE
(
NETSCAPE_ENCRYPTED_PKEY
,
enckey
,
X509_SIG
)
}
ASN1_BROKEN_SEQUENCE_END
(
NETSCAPE_ENCRYPTED_PKEY
)
NETSCAPE_ENCRYPTED_PKEY
*
d2i_NETSCAPE_ENCRYPTED_PKEY
(
NETSCAPE_ENCRYPTED_PKEY
**
p
,
const
unsigned
char
**
in
,
long
len
);
int
i2d_NETSCAPE_ENCRYPTED_PKEY
(
const
NETSCAPE_ENCRYPTED_PKEY
*
a
,
unsigned
char
**
out
);
NETSCAPE_ENCRYPTED_PKEY
*
NETSCAPE_ENCRYPTED_PKEY_new
(
void
);
void
NETSCAPE_ENCRYPTED_PKEY_free
(
NETSCAPE_ENCRYPTED_PKEY
*
a
);
IMPLEMENT_ASN1_FUNCTIONS_const
(
NETSCAPE_ENCRYPTED_PKEY
)
ASN1_SEQUENCE
(
NETSCAPE_PKEY
)
=
{
...
...
@@ -100,6 +105,10 @@ ASN1_SEQUENCE(NETSCAPE_PKEY) = {
ASN1_SIMPLE
(
NETSCAPE_PKEY
,
private_key
,
ASN1_OCTET_STRING
)
}
ASN1_SEQUENCE_END
(
NETSCAPE_PKEY
)
NETSCAPE_PKEY
*
d2i_NETSCAPE_PKEY
(
NETSCAPE_PKEY
**
p
,
const
unsigned
char
**
in
,
long
len
);
int
i2d_NETSCAPE_PKEY
(
const
NETSCAPE_PKEY
*
a
,
unsigned
char
**
out
);
NETSCAPE_PKEY
*
NETSCAPE_PKEY_new
(
void
);
void
NETSCAPE_PKEY_free
(
NETSCAPE_PKEY
*
a
);
IMPLEMENT_ASN1_FUNCTIONS_const
(
NETSCAPE_PKEY
)
static
RSA
*
d2i_RSA_NET_2
(
RSA
**
a
,
ASN1_OCTET_STRING
*
os
,
...
...
crypto/asn1/tasn_typ.c
浏览文件 @
40889b9c
...
...
@@ -104,6 +104,11 @@ IMPLEMENT_ASN1_TYPE(ASN1_VISIBLESTRING)
IMPLEMENT_ASN1_FUNCTIONS
(
ASN1_VISIBLESTRING
)
IMPLEMENT_ASN1_TYPE
(
ASN1_UNIVERSALSTRING
)
ASN1_UNIVERSALSTRING
*
d2i_ASN1_UNIVERSALSTRING
(
ASN1_UNIVERSALSTRING
**
a
,
unsigned
char
**
in
,
long
len
);
int
i2d_ASN1_UNIVERSALSTRING
(
ASN1_UNIVERSALSTRING
*
a
,
unsigned
char
**
out
);
ASN1_UNIVERSALSTRING
*
ASN1_UNIVERSALSTRING_new
(
void
);
void
ASN1_UNIVERSALSTRING_free
(
ASN1_UNIVERSALSTRING
*
a
);
IMPLEMENT_ASN1_FUNCTIONS
(
ASN1_UNIVERSALSTRING
)
IMPLEMENT_ASN1_TYPE
(
ASN1_BMPSTRING
)
...
...
crypto/conf/conf.h
浏览文件 @
40889b9c
...
...
@@ -129,6 +129,7 @@ int CONF_dump_fp(LHASH *conf, FILE *out);
int
CONF_dump_bio
(
LHASH
*
conf
,
BIO
*
out
);
void
OPENSSL_config
(
const
char
*
config_name
);
void
OPENSSL_no_config
(
void
);
/* New conf code. The semantics are different from the functions above.
If that wasn't the case, the above functions would have been replaced */
...
...
@@ -141,10 +142,10 @@ struct conf_st
};
CONF
*
NCONF_new
(
CONF_METHOD
*
meth
);
CONF_METHOD
*
NCONF_default
();
CONF_METHOD
*
NCONF_WIN32
();
CONF_METHOD
*
NCONF_default
(
void
);
CONF_METHOD
*
NCONF_WIN32
(
void
);
#if 0 /* Just to give you an idea of what I have in mind */
CONF_METHOD *NCONF_XML();
CONF_METHOD *NCONF_XML(
void
);
#endif
void
NCONF_free
(
CONF
*
conf
);
void
NCONF_free_data
(
CONF
*
conf
);
...
...
@@ -176,6 +177,7 @@ int CONF_modules_load_file(const char *filename, const char *appname,
unsigned
long
flags
);
void
CONF_modules_unload
(
int
all
);
void
CONF_modules_finish
(
void
);
void
CONF_modules_free
(
void
);
int
CONF_module_add
(
const
char
*
name
,
conf_init_func
*
ifunc
,
conf_finish_func
*
ffunc
);
...
...
crypto/conf/conf_lib.c
浏览文件 @
40889b9c
...
...
@@ -382,8 +382,9 @@ int NCONF_dump_bio(const CONF *conf, BIO *out)
return
conf
->
meth
->
dump
(
conf
,
out
);
}
/* This function should be avoided */
#
undef NCONF_get_number
#
if 0
long NCONF_get_number(CONF *conf,char *group,char *name)
{
int status;
...
...
@@ -397,4 +398,4 @@ long NCONF_get_number(CONF *conf,char *group,char *name)
}
return ret;
}
#endif
crypto/engine/eng_cnf.c
浏览文件 @
40889b9c
...
...
@@ -92,7 +92,7 @@ static int int_engine_init(ENGINE *e)
}
int
int_engine_configure
(
char
*
name
,
char
*
value
,
const
CONF
*
cnf
)
static
int
int_engine_configure
(
char
*
name
,
char
*
value
,
const
CONF
*
cnf
)
{
int
i
;
int
ret
=
0
;
...
...
crypto/engine/eng_fat.c
浏览文件 @
40889b9c
...
...
@@ -84,7 +84,7 @@ int ENGINE_set_default(ENGINE *e, unsigned int flags)
/* Set default algorithms using a string */
int
int_def_cb
(
const
char
*
alg
,
int
len
,
void
*
arg
)
static
int
int_def_cb
(
const
char
*
alg
,
int
len
,
void
*
arg
)
{
unsigned
int
*
pflags
=
arg
;
if
(
!
strncmp
(
alg
,
"ALL"
,
len
))
...
...
crypto/rsa/rsa.h
浏览文件 @
40889b9c
...
...
@@ -276,6 +276,9 @@ int RSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
int
RSA_set_ex_data
(
RSA
*
r
,
int
idx
,
void
*
arg
);
void
*
RSA_get_ex_data
(
const
RSA
*
r
,
int
idx
);
RSA
*
RSAPublicKey_dup
(
RSA
*
rsa
);
RSA
*
RSAPrivateKey_dup
(
RSA
*
rsa
);
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录