Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
9982cbbb
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,发现更多精彩内容 >>
提交
9982cbbb
编写于
9月 30, 2015
作者:
R
Rich Salz
提交者:
Rich Salz
10月 02, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove BIO_s_file_internal macro.
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
57e4e926
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
15 deletion
+14
-15
crypto/x509/by_file.c
crypto/x509/by_file.c
+2
-2
include/openssl/bio.h
include/openssl/bio.h
+0
-1
ssl/ssl_cert.c
ssl/ssl_cert.c
+2
-2
ssl/ssl_conf.c
ssl/ssl_conf.c
+1
-1
ssl/ssl_rsa.c
ssl/ssl_rsa.c
+8
-8
ssl/ssl_txt.c
ssl/ssl_txt.c
+1
-1
未找到文件。
crypto/x509/by_file.c
浏览文件 @
9982cbbb
...
...
@@ -129,7 +129,7 @@ int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type)
if
(
file
==
NULL
)
return
(
1
);
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
((
in
==
NULL
)
||
(
BIO_read_filename
(
in
,
file
)
<=
0
))
{
X509err
(
X509_F_X509_LOAD_CERT_FILE
,
ERR_R_SYS_LIB
);
...
...
@@ -186,7 +186,7 @@ int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type)
if
(
file
==
NULL
)
return
(
1
);
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
((
in
==
NULL
)
||
(
BIO_read_filename
(
in
,
file
)
<=
0
))
{
X509err
(
X509_F_X509_LOAD_CRL_FILE
,
ERR_R_SYS_LIB
);
...
...
include/openssl/bio.h
浏览文件 @
9982cbbb
...
...
@@ -635,7 +635,6 @@ int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
BIO_METHOD
*
BIO_s_file
(
void
);
BIO
*
BIO_new_file
(
const
char
*
filename
,
const
char
*
mode
);
# define BIO_s_file_internal BIO_s_file
# ifndef OPENSSL_NO_STDIO
BIO
*
BIO_new_fp
(
FILE
*
stream
,
int
close_flag
);
# endif
...
...
ssl/ssl_cert.c
浏览文件 @
9982cbbb
...
...
@@ -689,7 +689,7 @@ STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file)
sk
=
sk_X509_NAME_new
(
xname_cmp
);
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
((
sk
==
NULL
)
||
(
in
==
NULL
))
{
SSLerr
(
SSL_F_SSL_LOAD_CLIENT_CA_FILE
,
ERR_R_MALLOC_FAILURE
);
...
...
@@ -756,7 +756,7 @@ int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
oldcmp
=
sk_X509_NAME_set_cmp_func
(
stack
,
xname_cmp
);
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK
,
...
...
ssl/ssl_conf.c
浏览文件 @
9982cbbb
...
...
@@ -486,7 +486,7 @@ static int cmd_DHParameters(SSL_CONF_CTX *cctx, const char *value)
DH
*
dh
=
NULL
;
BIO
*
in
=
NULL
;
if
(
cctx
->
ctx
||
cctx
->
ssl
)
{
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
!
in
)
goto
end
;
if
(
BIO_read_filename
(
in
,
value
)
<=
0
)
...
...
ssl/ssl_rsa.c
浏览文件 @
9982cbbb
...
...
@@ -90,7 +90,7 @@ int SSL_use_certificate_file(SSL *ssl, const char *file, int type)
int
ret
=
0
;
X509
*
x
=
NULL
;
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_USE_CERTIFICATE_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -227,7 +227,7 @@ int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type)
BIO
*
in
;
RSA
*
rsa
=
NULL
;
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_USE_RSAPRIVATEKEY_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -299,7 +299,7 @@ int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type)
BIO
*
in
;
EVP_PKEY
*
pkey
=
NULL
;
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_USE_PRIVATEKEY_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -430,7 +430,7 @@ int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type)
int
ret
=
0
;
X509
*
x
=
NULL
;
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_CTX_USE_CERTIFICATE_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -512,7 +512,7 @@ int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type)
BIO
*
in
;
RSA
*
rsa
=
NULL
;
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -581,7 +581,7 @@ int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type)
BIO
*
in
;
EVP_PKEY
*
pkey
=
NULL
;
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -648,7 +648,7 @@ static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
ERR_clear_error
();
/* clear error stack for
* SSL_CTX_use_certificate() */
in
=
BIO_new
(
BIO_s_file
_internal
());
in
=
BIO_new
(
BIO_s_file
());
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_USE_CERTIFICATE_CHAIN_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
@@ -930,7 +930,7 @@ int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file)
goto
end
;
}
bin
=
BIO_new
(
BIO_s_file
_internal
());
bin
=
BIO_new
(
BIO_s_file
());
if
(
bin
==
NULL
)
{
SSLerr
(
SSL_F_SSL_CTX_USE_SERVERINFO_FILE
,
ERR_R_BUF_LIB
);
goto
end
;
...
...
ssl/ssl_txt.c
浏览文件 @
9982cbbb
...
...
@@ -92,7 +92,7 @@ int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x)
BIO
*
b
;
int
ret
;
if
((
b
=
BIO_new
(
BIO_s_file
_internal
()))
==
NULL
)
{
if
((
b
=
BIO_new
(
BIO_s_file
()))
==
NULL
)
{
SSLerr
(
SSL_F_SSL_SESSION_PRINT_FP
,
ERR_R_BUF_LIB
);
return
(
0
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录