Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a4f576a3
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看板
提交
a4f576a3
编写于
5月 05, 2002
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
disable AES ciphersuites unless explicitly requested
上级
3def5a01
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
23 deletion
+25
-23
ssl/ssl.h
ssl/ssl.h
+5
-4
ssl/ssl_ciph.c
ssl/ssl_ciph.c
+7
-6
ssl/tls1.h
ssl/tls1.h
+13
-13
未找到文件。
ssl/ssl.h
浏览文件 @
a4f576a3
...
...
@@ -253,7 +253,7 @@ extern "C" {
#define SSL_TXT_RC4 "RC4"
#define SSL_TXT_RC2 "RC2"
#define SSL_TXT_IDEA "IDEA"
#define SSL_TXT_AES "AES
"
#define SSL_TXT_AES "AES
draft"
/* AES ciphersuites are not yet official (thus excluded from 'ALL') */
#define SSL_TXT_MD5 "MD5"
#define SSL_TXT_SHA1 "SHA1"
#define SSL_TXT_SHA "SHA"
...
...
@@ -266,9 +266,10 @@ extern "C" {
#define SSL_TXT_TLSV1 "TLSv1"
#define SSL_TXT_ALL "ALL"
/* 'DEFAULT' at the start of the cipher list insert the following string
* in addition to this being the default cipher string */
#define SSL_DEFAULT_CIPHER_LIST "ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH"
/* The following cipher list is used by default.
* It also is substituted when an application-defined cipher list string
* starts with 'DEFAULT'. */
#define SSL_DEFAULT_CIPHER_LIST "ALL:!ADH:@STRENGTH"
/* Used in SSL_set_shutdown()/SSL_get_shutdown(); */
#define SSL_SENT_SHUTDOWN 1
...
...
ssl/ssl_ciph.c
浏览文件 @
a4f576a3
...
...
@@ -100,8 +100,9 @@ typedef struct cipher_order_st
}
CIPHER_ORDER
;
static
const
SSL_CIPHER
cipher_aliases
[]
=
{
/* Don't include eNULL unless specifically enabled */
{
0
,
SSL_TXT_ALL
,
0
,
SSL_ALL
&
~
SSL_eNULL
,
SSL_ALL
,
0
,
0
,
0
,
SSL_ALL
,
SSL_ALL
},
/* must be first */
/* Don't include eNULL unless specifically enabled.
* Similarly, don't include AES in ALL because these ciphers are not yet official. */
{
0
,
SSL_TXT_ALL
,
0
,
SSL_ALL
&
~
SSL_eNULL
&
~
SSL_AES
,
SSL_ALL
,
0
,
0
,
0
,
SSL_ALL
,
SSL_ALL
},
/* must be first */
{
0
,
SSL_TXT_kKRB5
,
0
,
SSL_kKRB5
,
0
,
0
,
0
,
0
,
SSL_MKEY_MASK
,
0
},
/* VRS Kerberos5 */
{
0
,
SSL_TXT_kRSA
,
0
,
SSL_kRSA
,
0
,
0
,
0
,
0
,
SSL_MKEY_MASK
,
0
},
{
0
,
SSL_TXT_kDHr
,
0
,
SSL_kDHr
,
0
,
0
,
0
,
0
,
SSL_MKEY_MASK
,
0
},
...
...
@@ -998,10 +999,10 @@ char *SSL_CIPHER_description(SSL_CIPHER *cipher, char *buf, int len)
case
SSL_AES
:
switch
(
cipher
->
strength_bits
)
{
case
128
:
enc
=
"AES(128)"
;
break
;
case
192
:
enc
=
"AES(192)"
;
break
;
case
256
:
enc
=
"AES(256)"
;
break
;
default:
enc
=
"AES(?""?""?)"
;
break
;
case
128
:
enc
=
"AES
draft
(128)"
;
break
;
case
192
:
enc
=
"AES
draft
(192)"
;
break
;
case
256
:
enc
=
"AES
draft
(256)"
;
break
;
default:
enc
=
"AES
draft
(?""?""?)"
;
break
;
}
break
;
default:
...
...
ssl/tls1.h
浏览文件 @
a4f576a3
...
...
@@ -127,19 +127,19 @@ extern "C" {
#define TLS1_TXT_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA "EXP1024-DHE-DSS-RC4-SHA"
#define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA "DHE-DSS-RC4-SHA"
/* AES ciphersuites from draft ietf-tls-ciphersuite-03.txt */
#define TLS1_TXT_RSA_WITH_AES_128_SHA "AES128-SHA"
#define TLS1_TXT_DH_DSS_WITH_AES_128_SHA "DH-DSS-AES128-SHA"
#define TLS1_TXT_DH_RSA_WITH_AES_128_SHA "DH-RSA-AES128-SHA"
#define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA "DHE-DSS-AES128-SHA"
#define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA "DHE-RSA-AES128-SHA"
#define TLS1_TXT_ADH_WITH_AES_128_SHA "ADH-AES128-SHA"
#define TLS1_TXT_RSA_WITH_AES_256_SHA "AES256-SHA"
#define TLS1_TXT_DH_DSS_WITH_AES_256_SHA "DH-DSS-AES256-SHA"
#define TLS1_TXT_DH_RSA_WITH_AES_256_SHA "DH-RSA-AES256-SHA"
#define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA "DHE-DSS-AES256-SHA"
#define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA "DHE-RSA-AES256-SHA"
#define TLS1_TXT_ADH_WITH_AES_256_SHA "ADH-AES256-SHA"
#define TLS1_TXT_RSA_WITH_AES_128_SHA "AES
draft
128-SHA"
#define TLS1_TXT_DH_DSS_WITH_AES_128_SHA "DH-DSS-AES
draft
128-SHA"
#define TLS1_TXT_DH_RSA_WITH_AES_128_SHA "DH-RSA-AES
draft
128-SHA"
#define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA "DHE-DSS-AES
draft
128-SHA"
#define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA "DHE-RSA-AES
draft
128-SHA"
#define TLS1_TXT_ADH_WITH_AES_128_SHA "ADH-AES
draft
128-SHA"
#define TLS1_TXT_RSA_WITH_AES_256_SHA "AES
draft
256-SHA"
#define TLS1_TXT_DH_DSS_WITH_AES_256_SHA "DH-DSS-AES
draft
256-SHA"
#define TLS1_TXT_DH_RSA_WITH_AES_256_SHA "DH-RSA-AES
draft
256-SHA"
#define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA "DHE-DSS-AES
draft
256-SHA"
#define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA "DHE-RSA-AES
draft
256-SHA"
#define TLS1_TXT_ADH_WITH_AES_256_SHA "ADH-AES
draft
256-SHA"
#define TLS_CT_RSA_SIGN 1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录