Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
303c0028
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看板
提交
303c0028
编写于
5月 09, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use "const char *" instead of "char *" for filenames passed to functions.
Submitted by: Reviewed by: PR:
上级
a5ab0532
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
30 addition
and
24 deletion
+30
-24
crypto/x509/by_dir.c
crypto/x509/by_dir.c
+3
-2
crypto/x509/by_file.c
crypto/x509/by_file.c
+3
-3
crypto/x509/x509_d2.c
crypto/x509/x509_d2.c
+2
-1
crypto/x509/x509_lu.c
crypto/x509/x509_lu.c
+1
-1
crypto/x509/x509_vfy.h
crypto/x509/x509_vfy.h
+5
-3
ssl/ssl.h
ssl/ssl.h
+8
-7
ssl/ssl_lib.c
ssl/ssl_lib.c
+2
-1
ssl/ssl_rsa.c
ssl/ssl_rsa.c
+6
-6
未找到文件。
crypto/x509/by_dir.c
浏览文件 @
303c0028
...
...
@@ -75,7 +75,8 @@ typedef struct lookup_dir_st
int
num_dirs_alloced
;
}
BY_DIR
;
static
int
dir_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argp
,
long
argl
,
char
**
ret
);
static
int
dir_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
const
char
*
argp
,
long
argl
,
char
**
ret
);
static
int
new_dir
(
X509_LOOKUP
*
lu
);
static
void
free_dir
(
X509_LOOKUP
*
lu
);
static
int
add_cert_dir
(
BY_DIR
*
ctx
,
const
char
*
dir
,
int
type
);
...
...
@@ -100,7 +101,7 @@ X509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void)
return
(
&
x509_dir_lookup
);
}
static
int
dir_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argp
,
long
argl
,
static
int
dir_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
c
onst
c
har
*
argp
,
long
argl
,
char
**
retp
)
{
int
ret
=
0
;
...
...
crypto/x509/by_file.c
浏览文件 @
303c0028
...
...
@@ -70,8 +70,8 @@
#ifndef NO_STDIO
static
int
by_file_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argc
,
long
argl
,
char
**
ret
);
static
int
by_file_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
const
char
*
argc
,
long
argl
,
char
**
ret
);
X509_LOOKUP_METHOD
x509_file_lookup
=
{
"Load file into cache"
,
...
...
@@ -91,7 +91,7 @@ X509_LOOKUP_METHOD *X509_LOOKUP_file(void)
return
(
&
x509_file_lookup
);
}
static
int
by_file_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argp
,
long
argl
,
static
int
by_file_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
c
onst
c
har
*
argp
,
long
argl
,
char
**
ret
)
{
int
ok
=
0
,
ok2
=
0
;
...
...
crypto/x509/x509_d2.c
浏览文件 @
303c0028
...
...
@@ -82,7 +82,8 @@ int X509_STORE_set_default_paths(X509_STORE *ctx)
return
(
1
);
}
int
X509_STORE_load_locations
(
X509_STORE
*
ctx
,
char
*
file
,
char
*
path
)
int
X509_STORE_load_locations
(
X509_STORE
*
ctx
,
const
char
*
file
,
const
char
*
path
)
{
X509_LOOKUP
*
lookup
;
...
...
crypto/x509/x509_lu.c
浏览文件 @
303c0028
...
...
@@ -111,7 +111,7 @@ int X509_LOOKUP_shutdown(X509_LOOKUP *ctx)
return
(
1
);
}
int
X509_LOOKUP_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argc
,
long
argl
,
int
X509_LOOKUP_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
c
onst
c
har
*
argc
,
long
argl
,
char
**
ret
)
{
if
(
ctx
->
method
==
NULL
)
return
(
-
1
);
...
...
crypto/x509/x509_vfy.h
浏览文件 @
303c0028
...
...
@@ -135,7 +135,8 @@ typedef struct x509_lookup_method_st
void
(
*
free
)(
X509_LOOKUP
*
ctx
);
int
(
*
init
)(
X509_LOOKUP
*
ctx
);
int
(
*
shutdown
)(
X509_LOOKUP
*
ctx
);
int
(
*
ctrl
)(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argc
,
long
argl
,
char
**
ret
);
int
(
*
ctrl
)(
X509_LOOKUP
*
ctx
,
int
cmd
,
const
char
*
argc
,
long
argl
,
char
**
ret
);
int
(
*
get_by_subject
)(
X509_LOOKUP
*
ctx
,
int
type
,
X509_NAME
*
name
,
X509_OBJECT
*
ret
);
int
(
*
get_by_issuer_serial
)(
X509_LOOKUP
*
ctx
,
int
type
,
X509_NAME
*
name
,
...
...
@@ -281,7 +282,8 @@ int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);
int
X509_STORE_get_by_subject
(
X509_STORE_CTX
*
vs
,
int
type
,
X509_NAME
*
name
,
X509_OBJECT
*
ret
);
int
X509_LOOKUP_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
char
*
argc
,
long
argl
,
char
**
ret
);
int
X509_LOOKUP_ctrl
(
X509_LOOKUP
*
ctx
,
int
cmd
,
const
char
*
argc
,
long
argl
,
char
**
ret
);
#ifndef NO_STDIO
int
X509_load_cert_file
(
X509_LOOKUP
*
ctx
,
const
char
*
file
,
int
type
);
...
...
@@ -304,7 +306,7 @@ int X509_LOOKUP_shutdown(X509_LOOKUP *ctx);
#ifndef NO_STDIO
int
X509_STORE_load_locations
(
X509_STORE
*
ctx
,
c
har
*
file
,
char
*
dir
);
c
onst
char
*
file
,
const
char
*
dir
);
int
X509_STORE_set_default_paths
(
X509_STORE
*
ctx
);
#endif
...
...
ssl/ssl.h
浏览文件 @
303c0028
...
...
@@ -868,12 +868,12 @@ int SSL_use_certificate(SSL *ssl, X509 *x);
int
SSL_use_certificate_ASN1
(
SSL
*
ssl
,
unsigned
char
*
d
,
int
len
);
#ifndef NO_STDIO
int
SSL_use_RSAPrivateKey_file
(
SSL
*
ssl
,
char
*
file
,
int
type
);
int
SSL_use_PrivateKey_file
(
SSL
*
ssl
,
char
*
file
,
int
type
);
int
SSL_use_certificate_file
(
SSL
*
ssl
,
char
*
file
,
int
type
);
int
SSL_CTX_use_RSAPrivateKey_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
);
int
SSL_CTX_use_PrivateKey_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
);
int
SSL_CTX_use_certificate_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
);
int
SSL_use_RSAPrivateKey_file
(
SSL
*
ssl
,
c
onst
c
har
*
file
,
int
type
);
int
SSL_use_PrivateKey_file
(
SSL
*
ssl
,
c
onst
c
har
*
file
,
int
type
);
int
SSL_use_certificate_file
(
SSL
*
ssl
,
c
onst
c
har
*
file
,
int
type
);
int
SSL_CTX_use_RSAPrivateKey_file
(
SSL_CTX
*
ctx
,
c
onst
c
har
*
file
,
int
type
);
int
SSL_CTX_use_PrivateKey_file
(
SSL_CTX
*
ctx
,
c
onst
c
har
*
file
,
int
type
);
int
SSL_CTX_use_certificate_file
(
SSL_CTX
*
ctx
,
c
onst
c
har
*
file
,
int
type
);
int
SSL_CTX_use_certificate_chain_file
(
SSL_CTX
*
ctx
,
const
char
*
file
);
/* PEM type */
STACK_OF
(
X509_NAME
)
*
SSL_load_client_CA_file
(
const
char
*
file
);
int
SSL_add_file_cert_subjects_to_stack
(
STACK_OF
(
X509_NAME
)
*
stackCAs
,
...
...
@@ -1018,7 +1018,8 @@ void SSL_set_shutdown(SSL *ssl,int mode);
int
SSL_get_shutdown
(
SSL
*
ssl
);
int
SSL_version
(
SSL
*
ssl
);
int
SSL_CTX_set_default_verify_paths
(
SSL_CTX
*
ctx
);
int
SSL_CTX_load_verify_locations
(
SSL_CTX
*
ctx
,
char
*
CAfile
,
char
*
CApath
);
int
SSL_CTX_load_verify_locations
(
SSL_CTX
*
ctx
,
const
char
*
CAfile
,
const
char
*
CApath
);
SSL_SESSION
*
SSL_get_session
(
SSL
*
ssl
);
SSL_CTX
*
SSL_get_SSL_CTX
(
SSL
*
ssl
);
void
SSL_set_info_callback
(
SSL
*
ssl
,
void
(
*
cb
)());
...
...
ssl/ssl_lib.c
浏览文件 @
303c0028
...
...
@@ -1704,7 +1704,8 @@ int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx)
return
(
X509_STORE_set_default_paths
(
ctx
->
cert_store
));
}
int
SSL_CTX_load_verify_locations
(
SSL_CTX
*
ctx
,
char
*
CAfile
,
char
*
CApath
)
int
SSL_CTX_load_verify_locations
(
SSL_CTX
*
ctx
,
const
char
*
CAfile
,
const
char
*
CApath
)
{
return
(
X509_STORE_load_locations
(
ctx
->
cert_store
,
CAfile
,
CApath
));
}
...
...
ssl/ssl_rsa.c
浏览文件 @
303c0028
...
...
@@ -82,7 +82,7 @@ int SSL_use_certificate(SSL *ssl, X509 *x)
}
#ifndef NO_STDIO
int
SSL_use_certificate_file
(
SSL
*
ssl
,
char
*
file
,
int
type
)
int
SSL_use_certificate_file
(
SSL
*
ssl
,
c
onst
c
har
*
file
,
int
type
)
{
int
j
;
BIO
*
in
;
...
...
@@ -253,7 +253,7 @@ static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
#ifndef NO_RSA
#ifndef NO_STDIO
int
SSL_use_RSAPrivateKey_file
(
SSL
*
ssl
,
char
*
file
,
int
type
)
int
SSL_use_RSAPrivateKey_file
(
SSL
*
ssl
,
c
onst
c
har
*
file
,
int
type
)
{
int
j
,
ret
=
0
;
BIO
*
in
;
...
...
@@ -338,7 +338,7 @@ int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey)
}
#ifndef NO_STDIO
int
SSL_use_PrivateKey_file
(
SSL
*
ssl
,
char
*
file
,
int
type
)
int
SSL_use_PrivateKey_file
(
SSL
*
ssl
,
c
onst
c
har
*
file
,
int
type
)
{
int
j
,
ret
=
0
;
BIO
*
in
;
...
...
@@ -494,7 +494,7 @@ static int ssl_set_cert(CERT *c, X509 *x)
}
#ifndef NO_STDIO
int
SSL_CTX_use_certificate_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
)
int
SSL_CTX_use_certificate_file
(
SSL_CTX
*
ctx
,
c
onst
c
har
*
file
,
int
type
)
{
int
j
;
BIO
*
in
;
...
...
@@ -591,7 +591,7 @@ int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa)
}
#ifndef NO_STDIO
int
SSL_CTX_use_RSAPrivateKey_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
)
int
SSL_CTX_use_RSAPrivateKey_file
(
SSL_CTX
*
ctx
,
c
onst
c
har
*
file
,
int
type
)
{
int
j
,
ret
=
0
;
BIO
*
in
;
...
...
@@ -673,7 +673,7 @@ int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey)
}
#ifndef NO_STDIO
int
SSL_CTX_use_PrivateKey_file
(
SSL_CTX
*
ctx
,
char
*
file
,
int
type
)
int
SSL_CTX_use_PrivateKey_file
(
SSL_CTX
*
ctx
,
c
onst
c
har
*
file
,
int
type
)
{
int
j
,
ret
=
0
;
BIO
*
in
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录