Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
37f3a3b3
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,发现更多精彩内容 >>
提交
37f3a3b3
编写于
9月 19, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make no-dh work
Reviewed-by:
N
Richard Levitte
<
levitte@openssl.org
>
上级
8f463dbd
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
6 deletion
+18
-6
apps/s_cb.c
apps/s_cb.c
+2
-1
apps/s_server.c
apps/s_server.c
+12
-2
crypto/bn/bn_dh.c
crypto/bn/bn_dh.c
+1
-1
crypto/evp/pmeth_lib.c
crypto/evp/pmeth_lib.c
+0
-1
test/recipes/80-test_cms.t
test/recipes/80-test_cms.t
+3
-1
未找到文件。
apps/s_cb.c
浏览文件 @
37f3a3b3
...
...
@@ -1381,13 +1381,14 @@ static int security_callback_debug(SSL *s, SSL_CTX *ctx,
}
break
;
#endif
#ifndef OPENSSL_NO_DH
case
SSL_SECOP_OTHER_DH
:
{
DH
*
dh
=
other
;
BIO_printf
(
sdb
->
out
,
"%d"
,
BN_num_bits
(
dh
->
p
));
break
;
}
#endif
case
SSL_SECOP_OTHER_CERT
:
{
if
(
cert_md
)
{
...
...
apps/s_server.c
浏览文件 @
37f3a3b3
...
...
@@ -973,7 +973,10 @@ int s_server_main(int argc, char *argv[])
X509
*
s_cert
=
NULL
,
*
s_dcert
=
NULL
;
X509_VERIFY_PARAM
*
vpm
=
NULL
;
char
*
CApath
=
NULL
,
*
CAfile
=
NULL
,
*
chCApath
=
NULL
,
*
chCAfile
=
NULL
;
char
*
dhfile
=
NULL
,
*
dpassarg
=
NULL
,
*
dpass
=
NULL
,
*
inrand
=
NULL
;
#ifndef OPENSSL_NO_DH
char
*
dhfile
=
NULL
;
#endif
char
*
dpassarg
=
NULL
,
*
dpass
=
NULL
,
*
inrand
=
NULL
;
char
*
passarg
=
NULL
,
*
pass
=
NULL
,
*
vfyCApath
=
NULL
,
*
vfyCAfile
=
NULL
;
char
*
crl_file
=
NULL
,
*
prog
;
#ifndef OPENSSL_NO_PSK
...
...
@@ -986,7 +989,10 @@ int s_server_main(int argc, char *argv[])
int
(
*
server_cb
)
(
char
*
hostname
,
int
s
,
int
stype
,
unsigned
char
*
context
);
int
vpmtouched
=
0
,
build_chain
=
0
,
no_cache
=
0
,
ext_cache
=
0
;
int
no_tmp_rsa
=
0
,
no_dhe
=
0
,
no_ecdhe
=
0
,
nocert
=
0
,
ret
=
1
;
#ifndef OPENSSL_NO_DH
int
no_dhe
=
0
;
#endif
int
no_tmp_rsa
=
0
,
no_ecdhe
=
0
,
nocert
=
0
,
ret
=
1
;
int
s_cert_format
=
FORMAT_PEM
,
s_key_format
=
FORMAT_PEM
;
int
s_dcert_format
=
FORMAT_PEM
,
s_dkey_format
=
FORMAT_PEM
;
int
rev
=
0
,
naccept
=
-
1
,
sdebug
=
0
,
socket_type
=
SOCK_STREAM
;
...
...
@@ -1119,7 +1125,9 @@ int s_server_main(int argc, char *argv[])
s_chain_file
=
opt_arg
();
break
;
case
OPT_DHPARAM
:
#ifndef OPENSSL_NO_DH
dhfile
=
opt_arg
();
#endif
break
;
case
OPT_DCERTFORM
:
if
(
!
opt_format
(
opt_arg
(),
OPT_FMT_PEMDER
,
&
s_dcert_format
))
...
...
@@ -1272,7 +1280,9 @@ int s_server_main(int argc, char *argv[])
no_tmp_rsa
=
1
;
break
;
case
OPT_NO_DHE
:
#ifndef OPENSSL_NO_DH
no_dhe
=
1
;
#endif
break
;
case
OPT_NO_ECDHE
:
no_ecdhe
=
1
;
...
...
crypto/bn/bn_dh.c
浏览文件 @
37f3a3b3
...
...
@@ -56,11 +56,11 @@
*
*/
#include <openssl/dh.h>
#include "bn_lcl.h"
#include "e_os.h"
#ifndef OPENSSL_NO_DH
#include <openssl/dh.h>
/* DH parameters from RFC5114 */
# if BN_BITS2 == 64
...
...
crypto/evp/pmeth_lib.c
浏览文件 @
37f3a3b3
...
...
@@ -61,7 +61,6 @@
#include <stdlib.h>
#include "internal/cryptlib.h"
#include <openssl/cmac.h>
#include <openssl/dh.h>
#include <openssl/dsa.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
...
...
test/recipes/80-test_cms.t
浏览文件 @
37f3a3b3
...
...
@@ -13,7 +13,7 @@ setup("test_cms");
my
$smdir
=
top_dir
("
test
",
"
smime-certs
");
my
$smcont
=
top_file
("
test
",
"
smcont.txt
");
my
(
$no_
ec
,
$no_ec2m
,
$no_zlib
)
=
disabled
qw/
ec ec2m zlib/
;
my
(
$no_
dh
,
$no_ec
,
$no_ec2m
,
$no_zlib
)
=
disabled
qw/dh
ec ec2m zlib/
;
plan
tests
=>
4
;
...
...
@@ -470,5 +470,7 @@ sub check_availability {
if
(
$no_ec
&&
$tnam
=~
/ECDH/
);
return
"
$tnam
: skipped, EC2M disabled
\n
"
if
(
$no_ec2m
&&
$tnam
=~
/K-283/
);
return
"
$tnam
: skipped, DH disabled
\n
"
if
(
$no_dh
&&
$tnam
=~
/X9\.42/
);
return
"";
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录