Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
25f923dd
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看板
提交
25f923dd
编写于
1月 09, 2000
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New function X509_CTX_rget_chain(), make SSL_SESSION_print() display return code.
Remove references to 'TXT' in -inform and -outform switches.
上级
150a4320
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
45 addition
and
20 deletion
+45
-20
CHANGES
CHANGES
+10
-0
apps/crl.c
apps/crl.c
+1
-1
apps/crl2p7.c
apps/crl2p7.c
+3
-3
apps/dh.c
apps/dh.c
+1
-1
apps/dsaparam.c
apps/dsaparam.c
+1
-1
apps/pkcs12.c
apps/pkcs12.c
+1
-5
apps/pkcs7.c
apps/pkcs7.c
+3
-3
apps/req.c
apps/req.c
+3
-3
apps/sess_id.c
apps/sess_id.c
+1
-1
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+13
-0
crypto/x509/x509_vfy.h
crypto/x509/x509_vfy.h
+1
-0
ssl/ssl_lib.c
ssl/ssl_lib.c
+1
-1
ssl/ssl_txt.c
ssl/ssl_txt.c
+6
-1
未找到文件。
CHANGES
浏览文件 @
25f923dd
...
...
@@ -4,6 +4,16 @@
Changes between 0.9.4 and 0.9.5 [xx XXX 1999]
*) New function X509_CTX_rget_chain(), this returns the chain
from an X509_CTX structure with a dup of the stack and all
the X509 reference counts upped: so the stack will exist
after X509_CTX_cleanup() has been called. Modify pkcs12.c
to use this.
Also make SSL_SESSION_print() print out the verify return
code.
[Steve Henson]
*) Add manpage for the pkcs12 command. Also change the default
behaviour so MAC iteration counts are used unless the new
-nomaciter option is used. This improves file security and
...
...
apps/crl.c
浏览文件 @
25f923dd
...
...
@@ -75,7 +75,7 @@
static
char
*
crl_usage
[]
=
{
"usage: crl args
\n
"
,
"
\n
"
,
" -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
\n
"
,
" -inform arg - input format - default PEM (
DER
or PEM)
\n
"
,
" -outform arg - output format - default PEM
\n
"
,
" -text - print out a text format version
\n
"
,
" -in arg - input file - default stdin
\n
"
,
...
...
apps/crl2p7.c
浏览文件 @
25f923dd
...
...
@@ -76,7 +76,7 @@ static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);
#undef PROG
#define PROG crl2pkcs7_main
/* -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
/* -inform arg - input format - default PEM (
DER
or PEM)
* -outform arg - output format - default PEM
* -in arg - input file - default stdin
* -out arg - output file - default stdout
...
...
@@ -157,8 +157,8 @@ int MAIN(int argc, char **argv)
bad:
BIO_printf
(
bio_err
,
"%s [options] <infile >outfile
\n
"
,
prog
);
BIO_printf
(
bio_err
,
"where options are
\n
"
);
BIO_printf
(
bio_err
,
" -inform arg input format -
one of DER TXT
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -outform arg output format -
one of DER TXT
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -inform arg input format -
DER or
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -outform arg output format -
DER or
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -in arg input file
\n
"
);
BIO_printf
(
bio_err
,
" -out arg output file
\n
"
);
BIO_printf
(
bio_err
,
" -certfile arg certificates file of chain to a trusted CA
\n
"
);
...
...
apps/dh.c
浏览文件 @
25f923dd
...
...
@@ -72,7 +72,7 @@
#undef PROG
#define PROG dh_main
/* -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
/* -inform arg - input format - default PEM (
DER
or PEM)
* -outform arg - output format - default PEM
* -in arg - input file - default stdin
* -out arg - output file - default stdout
...
...
apps/dsaparam.c
浏览文件 @
25f923dd
...
...
@@ -73,7 +73,7 @@
#undef PROG
#define PROG dsaparam_main
/* -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
/* -inform arg - input format - default PEM (
DER
or PEM)
* -outform arg - output format - default PEM
* -in arg - input file - default stdin
* -out arg - output file - default stdout
...
...
apps/pkcs12.c
浏览文件 @
25f923dd
...
...
@@ -607,11 +607,7 @@ int get_cert_chain (X509 *cert, STACK_OF(X509) **chain)
i
=
X509_STORE_CTX_get_error
(
&
store_ctx
);
goto
err
;
}
chn
=
sk_X509_dup
(
X509_STORE_CTX_get_chain
(
&
store_ctx
));
for
(
i
=
0
;
i
<
sk_X509_num
(
chn
);
i
++
)
{
x
=
sk_X509_value
(
chn
,
i
);
CRYPTO_add
(
&
x
->
references
,
1
,
CRYPTO_LOCK_X509
);
}
chn
=
X509_STORE_CTX_rget_chain
(
&
store_ctx
);
i
=
0
;
*
chain
=
chn
;
err:
...
...
apps/pkcs7.c
浏览文件 @
25f923dd
...
...
@@ -71,7 +71,7 @@
#undef PROG
#define PROG pkcs7_main
/* -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
/* -inform arg - input format - default PEM (
DER
or PEM)
* -outform arg - output format - default PEM
* -in arg - input file - default stdin
* -out arg - output file - default stdout
...
...
@@ -145,8 +145,8 @@ int MAIN(int argc, char **argv)
bad:
BIO_printf
(
bio_err
,
"%s [options] <infile >outfile
\n
"
,
prog
);
BIO_printf
(
bio_err
,
"where options are
\n
"
);
BIO_printf
(
bio_err
,
" -inform arg input format -
one of DER TXT
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -outform arg output format -
one of DER TXT
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -inform arg input format -
DER or
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -outform arg output format -
DER or
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -in arg input file
\n
"
);
BIO_printf
(
bio_err
,
" -out arg output file
\n
"
);
BIO_printf
(
bio_err
,
" -print_certs print any certs or crl in the input
\n
"
);
...
...
apps/req.c
浏览文件 @
25f923dd
...
...
@@ -91,7 +91,7 @@
#undef PROG
#define PROG req_main
/* -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
/* -inform arg - input format - default PEM (
DER
or PEM)
* -outform arg - output format - default PEM
* -in arg - input file - default stdin
* -out arg - output file - default stdout
...
...
@@ -377,8 +377,8 @@ int MAIN(int argc, char **argv)
bad:
BIO_printf
(
bio_err
,
"%s [options] <infile >outfile
\n
"
,
prog
);
BIO_printf
(
bio_err
,
"where options are
\n
"
);
BIO_printf
(
bio_err
,
" -inform arg input format -
one of DER TXT
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -outform arg output format -
one of DER TXT
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -inform arg input format -
DER or
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -outform arg output format -
DER or
PEM
\n
"
);
BIO_printf
(
bio_err
,
" -in arg input file
\n
"
);
BIO_printf
(
bio_err
,
" -out arg output file
\n
"
);
BIO_printf
(
bio_err
,
" -text text form of request
\n
"
);
...
...
apps/sess_id.c
浏览文件 @
25f923dd
...
...
@@ -72,7 +72,7 @@
static
char
*
sess_id_usage
[]
=
{
"usage: sess_id args
\n
"
,
"
\n
"
,
" -inform arg - input format - default PEM (
one of DER, TXT
or PEM)
\n
"
,
" -inform arg - input format - default PEM (
DER
or PEM)
\n
"
,
" -outform arg - output format - default PEM
\n
"
,
" -in arg - input file - default stdin
\n
"
,
" -out arg - output file - default stdout
\n
"
,
...
...
crypto/x509/x509_vfy.c
浏览文件 @
25f923dd
...
...
@@ -717,6 +717,19 @@ STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx)
return
(
ctx
->
chain
);
}
STACK_OF
(
X509
)
*
X509_STORE_CTX_rget_chain
(
X509_STORE_CTX
*
ctx
)
{
int
i
;
X509
*
x
;
STACK_OF
(
X509
)
*
chain
;
if
(
!
ctx
->
chain
||
!
(
chain
=
sk_X509_dup
(
ctx
->
chain
)))
return
NULL
;
for
(
i
=
0
;
i
<
sk_X509_num
(
chain
);
i
++
)
{
x
=
sk_X509_value
(
chain
,
i
);
CRYPTO_add
(
&
x
->
references
,
1
,
CRYPTO_LOCK_X509
);
}
return
(
chain
);
}
void
X509_STORE_CTX_set_cert
(
X509_STORE_CTX
*
ctx
,
X509
*
x
)
{
ctx
->
cert
=
x
;
...
...
crypto/x509/x509_vfy.h
浏览文件 @
25f923dd
...
...
@@ -347,6 +347,7 @@ void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
int
X509_STORE_CTX_get_error_depth
(
X509_STORE_CTX
*
ctx
);
X509
*
X509_STORE_CTX_get_current_cert
(
X509_STORE_CTX
*
ctx
);
STACK_OF
(
X509
)
*
X509_STORE_CTX_get_chain
(
X509_STORE_CTX
*
ctx
);
STACK_OF
(
X509
)
*
X509_STORE_CTX_rget_chain
(
X509_STORE_CTX
*
ctx
);
void
X509_STORE_CTX_set_cert
(
X509_STORE_CTX
*
c
,
X509
*
x
);
void
X509_STORE_CTX_set_chain
(
X509_STORE_CTX
*
c
,
STACK_OF
(
X509
)
*
sk
);
int
X509_STORE_CTX_set_purpose
(
X509_STORE_CTX
*
ctx
,
int
purpose
);
...
...
ssl/ssl_lib.c
浏览文件 @
25f923dd
...
...
@@ -910,7 +910,7 @@ const char *SSL_get_cipher_list(SSL *s,int n)
return
(
c
->
name
);
}
/** specify the ciphers to be used by defaut by the SSL_CTX */
/** specify the ciphers to be used by defau
l
t by the SSL_CTX */
int
SSL_CTX_set_cipher_list
(
SSL_CTX
*
ctx
,
char
*
str
)
{
STACK_OF
(
SSL_CIPHER
)
*
sk
;
...
...
ssl/ssl_txt.c
浏览文件 @
25f923dd
...
...
@@ -112,7 +112,7 @@ int SSL_SESSION_print(BIO *bp, SSL_SESSION *x)
sprintf
(
str
,
"%02X"
,
x
->
session_id
[
i
]);
if
(
BIO_puts
(
bp
,
str
)
<=
0
)
goto
err
;
}
if
(
BIO_puts
(
bp
,
"
\n
Session-ID-ctx: "
)
<=
0
)
goto
err
;
if
(
BIO_puts
(
bp
,
"
\n
Session-ID-ctx: "
)
<=
0
)
goto
err
;
for
(
i
=
0
;
i
<
x
->
sid_ctx_length
;
i
++
)
{
sprintf
(
str
,
"%02X"
,
x
->
sid_ctx
[
i
]);
...
...
@@ -163,6 +163,11 @@ int SSL_SESSION_print(BIO *bp, SSL_SESSION *x)
if
(
BIO_puts
(
bp
,
str
)
<=
0
)
goto
err
;
}
if
(
BIO_puts
(
bp
,
"
\n
"
)
<=
0
)
goto
err
;
if
(
BIO_puts
(
bp
,
" Verify return code "
)
<=
0
)
goto
err
;
sprintf
(
str
,
"%ld (%s)
\n
"
,
x
->
verify_result
,
X509_verify_cert_error_string
(
x
->
verify_result
));
if
(
BIO_puts
(
bp
,
str
)
<=
0
)
goto
err
;
return
(
1
);
err:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录