Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
01edb104
Commit
01edb104
authored
Jun 24, 2014
by
Manuel Pégourié-Gonnard
Committed by
Paul Bakker
Jun 25, 2014
Browse files
Add POLARSSL_REMOVE_RC4_CIPHERSUITES
parent
2a45d1c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
ChangeLog
ChangeLog
+2
-0
include/polarssl/config.h
include/polarssl/config.h
+13
-0
library/ssl_ciphersuites.c
library/ssl_ciphersuites.c
+6
-0
No files found.
ChangeLog
View file @
01edb104
...
...
@@ -18,6 +18,8 @@ Features
* Blowfish in the cipher layer now supports variable length keys.
* Add example config.h for PSK with CCM, optimized for low RAM usage.
* Optimize for RAM usage in example config.h for NSA Suite B profile.
* Add POLARSSL_REMOVE_ARC4_CIPHERSUITES to allow removing RC4 ciphersuites
from the default list (inactive by default).
Changes
* Add LINK_WITH_PTHREAD option in CMake for explicit linking that is
...
...
include/polarssl/config.h
View file @
01edb104
...
...
@@ -314,6 +314,19 @@
*/
//#define POLARSSL_ENABLE_WEAK_CIPHERSUITES
/**
* \def POLARSSL_REMOVE_ARC4_CIPHERSUITES
*
* Remove RC4 ciphersuites by default in SSL / TLS.
* This flag removes the ciphersuites based on RC4 from the default list as
* returned by ssl_list_ciphersuites(). However, it is still possible to
* enable (some of) them with ssl_set_ciphersuites() by including them
* explicitly.
*
* Uncomment this macro to remove RC4 ciphersuites by default.
*/
//#define POLARSSL_REMOVE_ARC4_CIPHERSUITES
/**
* \def POLARSSL_ECP_XXXX_ENABLED
*
...
...
library/ssl_ciphersuites.c
View file @
01edb104
...
...
@@ -1694,7 +1694,13 @@ const int *ssl_list_ciphersuites( void )
for
(
i
=
0
;
i
<
max
-
1
&&
p
[
i
]
!=
0
;
i
++
)
{
#if defined(POLARSSL_REMOVE_ARC4_CIPHERSUITES)
const
ssl_ciphersuite_t
*
cs_info
;
if
(
(
cs_info
=
ssl_ciphersuite_from_id
(
p
[
i
]
)
)
!=
NULL
&&
cs_info
->
cipher
!=
POLARSSL_CIPHER_ARC4_128
)
#else
if
(
ssl_ciphersuite_from_id
(
p
[
i
]
)
!=
NULL
)
#endif
*
(
q
++
)
=
p
[
i
];
}
*
q
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment