Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
9641be2a
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看板
提交
9641be2a
编写于
2月 10, 2012
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
PR: 2714
Submitted by: Tomas Mraz <tmraz@redhat.com> Make no-srp work.
上级
f94cfe6a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
4 deletion
+13
-4
apps/progs.h
apps/progs.h
+3
-3
apps/progs.pl
apps/progs.pl
+2
-0
apps/s_server.c
apps/s_server.c
+8
-1
未找到文件。
apps/progs.h
浏览文件 @
9641be2a
...
...
@@ -44,9 +44,9 @@ extern int smime_main(int argc,char *argv[]);
extern
int
rand_main
(
int
argc
,
char
*
argv
[]);
extern
int
engine_main
(
int
argc
,
char
*
argv
[]);
extern
int
ocsp_main
(
int
argc
,
char
*
argv
[]);
extern
int
srp_main
(
int
argc
,
char
*
argv
[]);
extern
int
prime_main
(
int
argc
,
char
*
argv
[]);
extern
int
ts_main
(
int
argc
,
char
*
argv
[]);
extern
int
srp_main
(
int
argc
,
char
*
argv
[]);
#define FUNC_TYPE_GENERAL 1
#define FUNC_TYPE_MD 2
...
...
@@ -146,11 +146,11 @@ FUNCTION functions[] = {
#ifndef OPENSSL_NO_OCSP
{
FUNC_TYPE_GENERAL
,
"ocsp"
,
ocsp_main
},
#endif
{
FUNC_TYPE_GENERAL
,
"prime"
,
prime_main
},
{
FUNC_TYPE_GENERAL
,
"ts"
,
ts_main
},
#ifndef OPENSSL_NO_SRP
{
FUNC_TYPE_GENERAL
,
"srp"
,
srp_main
},
#endif
{
FUNC_TYPE_GENERAL
,
"prime"
,
prime_main
},
{
FUNC_TYPE_GENERAL
,
"ts"
,
ts_main
},
#ifndef OPENSSL_NO_MD2
{
FUNC_TYPE_MD
,
"md2"
,
dgst_main
},
#endif
...
...
apps/progs.pl
浏览文件 @
9641be2a
...
...
@@ -51,6 +51,8 @@ foreach (@ARGV)
{
print
"
#ifndef OPENSSL_NO_CMS
\n
${str}
#endif
\n
";
}
elsif
(
(
$_
=~
/^ocsp$/
))
{
print
"
#ifndef OPENSSL_NO_OCSP
\n
${str}
#endif
\n
";
}
elsif
(
(
$_
=~
/^srp$/
))
{
print
"
#ifndef OPENSSL_NO_SRP
\n
${str}
#endif
\n
";
}
else
{
print
$str
;
}
}
...
...
apps/s_server.c
浏览文件 @
9641be2a
...
...
@@ -2275,6 +2275,7 @@ static int sv_body(char *hostname, int s, unsigned char *context)
{
static
count
=
0
;
if
(
++
count
==
100
)
{
count
=
0
;
SSL_renegotiate
(
con
);
}
}
#endif
k
=
SSL_write
(
con
,
&
(
buf
[
l
]),(
unsigned
int
)
i
);
#ifndef OPENSSL_NO_SRP
while
(
SSL_get_error
(
con
,
k
)
==
SSL_ERROR_WANT_X509_LOOKUP
)
{
BIO_printf
(
bio_s_out
,
"LOOKUP renego during write
\n
"
);
...
...
@@ -2285,6 +2286,7 @@ static int sv_body(char *hostname, int s, unsigned char *context)
BIO_printf
(
bio_s_out
,
"LOOKUP not successful
\n
"
);
k
=
SSL_write
(
con
,
&
(
buf
[
l
]),(
unsigned
int
)
i
);
}
#endif
switch
(
SSL_get_error
(
con
,
k
))
{
case
SSL_ERROR_NONE
:
...
...
@@ -2332,6 +2334,7 @@ static int sv_body(char *hostname, int s, unsigned char *context)
{
again:
i
=
SSL_read
(
con
,(
char
*
)
buf
,
bufsize
);
#ifndef OPENSSL_NO_SRP
while
(
SSL_get_error
(
con
,
i
)
==
SSL_ERROR_WANT_X509_LOOKUP
)
{
BIO_printf
(
bio_s_out
,
"LOOKUP renego during read
\n
"
);
...
...
@@ -2342,6 +2345,7 @@ again:
BIO_printf
(
bio_s_out
,
"LOOKUP not successful
\n
"
);
i
=
SSL_read
(
con
,(
char
*
)
buf
,
bufsize
);
}
#endif
switch
(
SSL_get_error
(
con
,
i
))
{
case
SSL_ERROR_NONE
:
...
...
@@ -2419,6 +2423,7 @@ static int init_ssl_connection(SSL *con)
i
=
SSL_accept
(
con
);
#ifndef OPENSSL_NO_SRP
while
(
i
<=
0
&&
SSL_get_error
(
con
,
i
)
==
SSL_ERROR_WANT_X509_LOOKUP
)
{
BIO_printf
(
bio_s_out
,
"LOOKUP during accept %s
\n
"
,
srp_callback_parm
.
login
);
...
...
@@ -2429,6 +2434,7 @@ static int init_ssl_connection(SSL *con)
BIO_printf
(
bio_s_out
,
"LOOKUP not successful
\n
"
);
i
=
SSL_accept
(
con
);
}
#endif
if
(
i
<=
0
)
{
if
(
BIO_sock_should_retry
(
i
))
...
...
@@ -2649,6 +2655,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
if
(
hack
)
{
i
=
SSL_accept
(
con
);
#ifndef OPENSSL_NO_SRP
while
(
i
<=
0
&&
SSL_get_error
(
con
,
i
)
==
SSL_ERROR_WANT_X509_LOOKUP
)
{
BIO_printf
(
bio_s_out
,
"LOOKUP during accept %s
\n
"
,
srp_callback_parm
.
login
);
...
...
@@ -2659,7 +2666,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
BIO_printf
(
bio_s_out
,
"LOOKUP not successful
\n
"
);
i
=
SSL_accept
(
con
);
}
#endif
switch
(
SSL_get_error
(
con
,
i
))
{
case
SSL_ERROR_NONE
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录