Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
6d02d8e4
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看板
提交
6d02d8e4
编写于
3月 31, 1999
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New option "-showcerts" for s_client
Slight cleanup in ssl/
上级
4f49cc74
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
9 deletion
+24
-9
CHANGES
CHANGES
+8
-0
apps/s_client.c
apps/s_client.c
+9
-1
ssl/s2_clnt.c
ssl/s2_clnt.c
+1
-1
ssl/ssl.h
ssl/ssl.h
+3
-4
ssl/ssl2.h
ssl/ssl2.h
+2
-2
ssl/ssl_sess.c
ssl/ssl_sess.c
+1
-1
未找到文件。
CHANGES
浏览文件 @
6d02d8e4
...
@@ -5,6 +5,14 @@
...
@@ -5,6 +5,14 @@
Changes between 0.9.2b and 0.9.3
Changes between 0.9.2b and 0.9.3
*) Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and
SSL2_SERVER_VERSION (not used at all) macros, which are now the
same as SSL2_VERSION anyway.
[Bodo Moeller]
*) New "-showcerts" option for s_client.
[Bodo Moeller]
*) Still more PKCS#12 integration. Add pkcs12 application to openssl
*) Still more PKCS#12 integration. Add pkcs12 application to openssl
application. Various cleanups and fixes.
application. Various cleanups and fixes.
[Steve Henson]
[Steve Henson]
...
...
apps/s_client.c
浏览文件 @
6d02d8e4
...
@@ -90,6 +90,7 @@ static int c_nbio=0;
...
@@ -90,6 +90,7 @@ static int c_nbio=0;
#endif
#endif
static
int
c_Pause
=
0
;
static
int
c_Pause
=
0
;
static
int
c_debug
=
0
;
static
int
c_debug
=
0
;
static
int
c_showcerts
=
0
;
#ifndef NOPROTO
#ifndef NOPROTO
static
void
sc_usage
(
void
);
static
void
sc_usage
(
void
);
...
@@ -118,6 +119,7 @@ static void sc_usage()
...
@@ -118,6 +119,7 @@ static void sc_usage()
BIO_printf
(
bio_err
,
" -CAfile arg - PEM format file of CA's
\n
"
);
BIO_printf
(
bio_err
,
" -CAfile arg - PEM format file of CA's
\n
"
);
BIO_printf
(
bio_err
,
" -reconnect - Drop and re-make the connection with the same Session-ID
\n
"
);
BIO_printf
(
bio_err
,
" -reconnect - Drop and re-make the connection with the same Session-ID
\n
"
);
BIO_printf
(
bio_err
,
" -pause - sleep(1) after each read(2) and write(2) system call
\n
"
);
BIO_printf
(
bio_err
,
" -pause - sleep(1) after each read(2) and write(2) system call
\n
"
);
BIO_printf
(
bio_err
,
" -showcerts - show all certificates in the chain
\n
"
);
BIO_printf
(
bio_err
,
" -debug - extra output
\n
"
);
BIO_printf
(
bio_err
,
" -debug - extra output
\n
"
);
BIO_printf
(
bio_err
,
" -nbio_test - more ssl protocol testing
\n
"
);
BIO_printf
(
bio_err
,
" -nbio_test - more ssl protocol testing
\n
"
);
BIO_printf
(
bio_err
,
" -state - print the 'ssl' states
\n
"
);
BIO_printf
(
bio_err
,
" -state - print the 'ssl' states
\n
"
);
...
@@ -171,6 +173,7 @@ char **argv;
...
@@ -171,6 +173,7 @@ char **argv;
c_Pause
=
0
;
c_Pause
=
0
;
c_quiet
=
0
;
c_quiet
=
0
;
c_debug
=
0
;
c_debug
=
0
;
c_showcerts
=
0
;
if
(
bio_err
==
NULL
)
if
(
bio_err
==
NULL
)
bio_err
=
BIO_new_fp
(
stderr
,
BIO_NOCLOSE
);
bio_err
=
BIO_new_fp
(
stderr
,
BIO_NOCLOSE
);
...
@@ -227,6 +230,8 @@ char **argv;
...
@@ -227,6 +230,8 @@ char **argv;
c_Pause
=
1
;
c_Pause
=
1
;
else
if
(
strcmp
(
*
argv
,
"-debug"
)
==
0
)
else
if
(
strcmp
(
*
argv
,
"-debug"
)
==
0
)
c_debug
=
1
;
c_debug
=
1
;
else
if
(
strcmp
(
*
argv
,
"-showcerts"
)
==
0
)
c_showcerts
=
1
;
else
if
(
strcmp
(
*
argv
,
"-nbio_test"
)
==
0
)
else
if
(
strcmp
(
*
argv
,
"-nbio_test"
)
==
0
)
nbio_test
=
1
;
nbio_test
=
1
;
else
if
(
strcmp
(
*
argv
,
"-state"
)
==
0
)
else
if
(
strcmp
(
*
argv
,
"-state"
)
==
0
)
...
@@ -675,6 +680,8 @@ int full;
...
@@ -675,6 +680,8 @@ int full;
X509_NAME_oneline
(
X509_get_issuer_name
((
X509
*
)
X509_NAME_oneline
(
X509_get_issuer_name
((
X509
*
)
sk_value
(
sk
,
i
)),
buf
,
BUFSIZ
);
sk_value
(
sk
,
i
)),
buf
,
BUFSIZ
);
BIO_printf
(
bio
,
" i:%s
\n
"
,
buf
);
BIO_printf
(
bio
,
" i:%s
\n
"
,
buf
);
if
(
c_showcerts
)
PEM_write_bio_X509
(
bio
,(
X509
*
)
sk_value
(
sk
,
i
));
}
}
}
}
...
@@ -683,7 +690,8 @@ int full;
...
@@ -683,7 +690,8 @@ int full;
if
(
peer
!=
NULL
)
if
(
peer
!=
NULL
)
{
{
BIO_printf
(
bio
,
"Server certificate
\n
"
);
BIO_printf
(
bio
,
"Server certificate
\n
"
);
PEM_write_bio_X509
(
bio
,
peer
);
if
(
!
c_showcerts
)
/* Redundant if we showed the whole chain */
PEM_write_bio_X509
(
bio
,
peer
);
X509_NAME_oneline
(
X509_get_subject_name
(
peer
),
X509_NAME_oneline
(
X509_get_subject_name
(
peer
),
buf
,
BUFSIZ
);
buf
,
BUFSIZ
);
BIO_printf
(
bio
,
"subject=%s
\n
"
,
buf
);
BIO_printf
(
bio
,
"subject=%s
\n
"
,
buf
);
...
...
ssl/s2_clnt.c
浏览文件 @
6d02d8e4
...
@@ -485,7 +485,7 @@ SSL *s;
...
@@ -485,7 +485,7 @@ SSL *s;
p
=
buf
;
/* header */
p
=
buf
;
/* header */
d
=
p
+
9
;
/* data section */
d
=
p
+
9
;
/* data section */
*
(
p
++
)
=
SSL2_MT_CLIENT_HELLO
;
/* type */
*
(
p
++
)
=
SSL2_MT_CLIENT_HELLO
;
/* type */
s2n
(
SSL2_
CLIENT_VERSION
,
p
);
/* version */
s2n
(
SSL2_
VERSION
,
p
);
/* version */
n
=
j
=
0
;
n
=
j
=
0
;
n
=
ssl_cipher_list_to_bytes
(
s
,
SSL_get_ciphers
(
s
),
d
);
n
=
ssl_cipher_list_to_bytes
(
s
,
SSL_get_ciphers
(
s
),
d
);
...
...
ssl/ssl.h
浏览文件 @
6d02d8e4
...
@@ -477,10 +477,9 @@ struct ssl_ctx_st
...
@@ -477,10 +477,9 @@ struct ssl_ctx_st
struct
ssl_st
struct
ssl_st
{
{
/* procol version
/* protocol version
* 2 for SSLv2
* (one of SSL2_VERSION, SSL3_VERSION, TLS1_VERSION)
* 3 for SSLv3
*/
* -3 for SSLv3 but accept SSLv2 */
int
version
;
int
version
;
int
type
;
/* SSL_ST_CONNECT or SSL_ST_ACCEPT */
int
type
;
/* SSL_ST_CONNECT or SSL_ST_ACCEPT */
...
...
ssl/ssl2.h
浏览文件 @
6d02d8e4
...
@@ -67,8 +67,8 @@ extern "C" {
...
@@ -67,8 +67,8 @@ extern "C" {
#define SSL2_VERSION 0x0002
#define SSL2_VERSION 0x0002
#define SSL2_VERSION_MAJOR 0x00
#define SSL2_VERSION_MAJOR 0x00
#define SSL2_VERSION_MINOR 0x02
#define SSL2_VERSION_MINOR 0x02
#define SSL2_CLIENT_VERSION 0x0002
/* #define SSL2_CLIENT_VERSION 0x0002 */
#define SSL2_SERVER_VERSION 0x0002
/* #define SSL2_SERVER_VERSION 0x0002 */
/* Protocol Message Codes */
/* Protocol Message Codes */
#define SSL2_MT_ERROR 0
#define SSL2_MT_ERROR 0
...
...
ssl/ssl_sess.c
浏览文件 @
6d02d8e4
...
@@ -150,7 +150,7 @@ int session;
...
@@ -150,7 +150,7 @@ int session;
if
(
session
)
if
(
session
)
{
{
if
(
s
->
version
==
SSL2_
CLIENT_
VERSION
)
if
(
s
->
version
==
SSL2_VERSION
)
{
{
ss
->
ssl_version
=
SSL2_VERSION
;
ss
->
ssl_version
=
SSL2_VERSION
;
ss
->
session_id_length
=
SSL2_SSL_SESSION_ID_LENGTH
;
ss
->
session_id_length
=
SSL2_SSL_SESSION_ID_LENGTH
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录