Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
a49034ab
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,体验更适合开发者的 AI 搜索 >>
提交
a49034ab
编写于
3月 06, 1999
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix names of cert stack functions.
上级
03e20a1a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
16 deletion
+18
-16
ssl/ssl.err
ssl/ssl.err
+2
-2
ssl/ssl.h
ssl/ssl.h
+8
-6
ssl/ssl_cert.c
ssl/ssl_cert.c
+6
-6
ssl/ssl_err.c
ssl/ssl_err.c
+2
-2
未找到文件。
ssl/ssl.err
浏览文件 @
a49034ab
...
...
@@ -62,8 +62,8 @@
#define SSL_F_SSL3_SETUP_KEY_BLOCK 157
#define SSL_F_SSL3_WRITE_BYTES 158
#define SSL_F_SSL3_WRITE_PENDING 159
#define SSL_F_SSL_ADD_
CERT_DIR_TO_STACK
215
#define SSL_F_SSL_ADD_
CERT_FILE_TO_STACK
216
#define SSL_F_SSL_ADD_
DIR_CERT_SUBJECTS_TO_STACK
215
#define SSL_F_SSL_ADD_
FILE_CERT_SUBJECTS_TO_STACK
216
#define SSL_F_SSL_BAD_METHOD 160
#define SSL_F_SSL_BYTES_TO_CIPHER_LIST 161
#define SSL_F_SSL_CERT_INSTANTIATE 214
...
...
ssl/ssl.h
浏览文件 @
a49034ab
...
...
@@ -858,8 +858,10 @@ 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
);
STACK
*
SSL_load_client_CA_file
(
char
*
file
);
int
SSL_add_cert_file_to_stack
(
STACK
*
stackCAs
,
const
char
*
file
);
int
SSL_add_cert_dir_to_stack
(
STACK
*
stackCAs
,
const
char
*
dir
);
int
SSL_add_file_cert_subjects_to_stack
(
STACK
*
stackCAs
,
const
char
*
file
);
int
SSL_add_dir_cert_subjects_to_stack
(
STACK
*
stackCAs
,
const
char
*
dir
);
#endif
void
ERR_load_SSL_strings
(
void
);
...
...
@@ -1112,8 +1114,8 @@ int SSL_CTX_use_RSAPrivateKey_file();
int
SSL_CTX_use_PrivateKey_file
();
int
SSL_CTX_use_certificate_file
();
STACK
*
SSL_load_client_CA_file
();
int
SSL_add_
cert_file
_to_stack
();
int
SSL_add_
cert_dir
_to_stack
();
int
SSL_add_
file_cert_subjects
_to_stack
();
int
SSL_add_
dir_cert_subjects
_to_stack
();
#endif
void
ERR_load_SSL_strings
();
...
...
@@ -1348,8 +1350,8 @@ void SSL_set_tmp_dh_callback();
#define SSL_F_SSL3_SETUP_KEY_BLOCK 157
#define SSL_F_SSL3_WRITE_BYTES 158
#define SSL_F_SSL3_WRITE_PENDING 159
#define SSL_F_SSL_ADD_
CERT_DIR_TO_STACK
215
#define SSL_F_SSL_ADD_
CERT_FILE_TO_STACK
216
#define SSL_F_SSL_ADD_
DIR_CERT_SUBJECTS_TO_STACK
215
#define SSL_F_SSL_ADD_
FILE_CERT_SUBJECTS_TO_STACK
216
#define SSL_F_SSL_BAD_METHOD 160
#define SSL_F_SSL_BYTES_TO_CIPHER_LIST 161
#define SSL_F_SSL_CERT_INSTANTIATE 214
...
...
ssl/ssl_cert.c
浏览文件 @
a49034ab
...
...
@@ -371,7 +371,7 @@ err:
* certs may have been added to \c stack.
*/
int
SSL_add_
cert_file
_to_stack
(
STACK
*
stack
,
const
char
*
file
)
int
SSL_add_
file_cert_subjects
_to_stack
(
STACK
*
stack
,
const
char
*
file
)
{
BIO
*
in
;
X509
*
x
=
NULL
;
...
...
@@ -385,7 +385,7 @@ int SSL_add_cert_file_to_stack(STACK *stack,const char *file)
if
(
in
==
NULL
)
{
SSLerr
(
SSL_F_SSL_ADD_
CERT_FILE
_TO_STACK
,
ERR_R_MALLOC_FAILURE
);
SSLerr
(
SSL_F_SSL_ADD_
FILE_CERT_SUBJECTS
_TO_STACK
,
ERR_R_MALLOC_FAILURE
);
goto
err
;
}
...
...
@@ -433,7 +433,7 @@ err:
#ifndef WIN32
int
SSL_add_
cert_dir
_to_stack
(
STACK
*
stack
,
const
char
*
dir
)
int
SSL_add_
dir_cert_subjects
_to_stack
(
STACK
*
stack
,
const
char
*
dir
)
{
DIR
*
d
=
opendir
(
dir
);
struct
dirent
*
dstruct
;
...
...
@@ -441,7 +441,7 @@ int SSL_add_cert_dir_to_stack(STACK *stack,const char *dir)
/* Note that a side effect is that the CAs will be sorted by name */
if
(
!
d
)
{
SSLerr
(
SSL_F_SSL_ADD_
CERT_DIR
_TO_STACK
,
ERR_R_MALLOC_FAILURE
);
SSLerr
(
SSL_F_SSL_ADD_
DIR_CERT_SUBJECTS
_TO_STACK
,
ERR_R_MALLOC_FAILURE
);
return
0
;
}
...
...
@@ -451,12 +451,12 @@ int SSL_add_cert_dir_to_stack(STACK *stack,const char *dir)
if
(
strlen
(
dir
)
+
strlen
(
dstruct
->
d_name
)
+
2
>
sizeof
buf
)
{
SSLerr
(
SSL_F_SSL_ADD_
CERT_DIR
_TO_STACK
,
SSL_R_PATH_TOO_LONG
);
SSLerr
(
SSL_F_SSL_ADD_
DIR_CERT_SUBJECTS
_TO_STACK
,
SSL_R_PATH_TOO_LONG
);
return
0
;
}
sprintf
(
buf
,
"%s/%s"
,
dir
,
dstruct
->
d_name
);
if
(
!
SSL_add_
cert_file
_to_stack
(
stack
,
buf
))
if
(
!
SSL_add_
file_cert_subjects
_to_stack
(
stack
,
buf
))
return
0
;
}
...
...
ssl/ssl_err.c
浏览文件 @
a49034ab
...
...
@@ -124,8 +124,8 @@ static ERR_STRING_DATA SSL_str_functs[]=
{
ERR_PACK
(
0
,
SSL_F_SSL3_SETUP_KEY_BLOCK
,
0
),
"SSL3_SETUP_KEY_BLOCK"
},
{
ERR_PACK
(
0
,
SSL_F_SSL3_WRITE_BYTES
,
0
),
"SSL3_WRITE_BYTES"
},
{
ERR_PACK
(
0
,
SSL_F_SSL3_WRITE_PENDING
,
0
),
"SSL3_WRITE_PENDING"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_ADD_
CERT_DIR_TO_STACK
,
0
),
"SSL_add_cert_dir
_to_stack"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_ADD_
CERT_FILE_TO_STACK
,
0
),
"SSL_add_cert_file
_to_stack"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_ADD_
DIR_CERT_SUBJECTS_TO_STACK
,
0
),
"SSL_add_dir_cert_subjects
_to_stack"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_ADD_
FILE_CERT_SUBJECTS_TO_STACK
,
0
),
"SSL_add_file_cert_subjects
_to_stack"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_BAD_METHOD
,
0
),
"SSL_BAD_METHOD"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_BYTES_TO_CIPHER_LIST
,
0
),
"SSL_BYTES_TO_CIPHER_LIST"
},
{
ERR_PACK
(
0
,
SSL_F_SSL_CERT_INSTANTIATE
,
0
),
"SSL_CERT_INSTANTIATE"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录