diff options
author | Joshua Colp <jcolp@digium.com> | 2016-02-03 14:05:20 -0400 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2016-02-03 15:07:56 -0600 |
commit | f8acadde2c1fcd36fa56bb39bf6058d7116f0962 (patch) | |
tree | a942b93bd86fe1d2131b0f3e02476eea493a5c96 /include/asterisk/tcptls.h | |
parent | 73159cb45f26e5f52605beb826cd955538912458 (diff) |
AST-2016-001 http: Provide greater control of TLS and set modern defaults.
This change exposes the configuration of various aspects of the TLS
support and sets the default to the modern standards.
The TLS cipher is now set to the best values according to the
Mozilla OpSec team, different TLS versions can now be disabled, and
the cipher order can be forced to be that of the server instead of
the client.
ASTERISK-24972 #close
Change-Id: I0a10f2883f7559af5e48dee0901251dbf30d45b8
Diffstat (limited to 'include/asterisk/tcptls.h')
-rw-r--r-- | include/asterisk/tcptls.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/asterisk/tcptls.h b/include/asterisk/tcptls.h index 0e8d9d042..e1a632cca 100644 --- a/include/asterisk/tcptls.h +++ b/include/asterisk/tcptls.h @@ -86,7 +86,15 @@ enum ast_ssl_flags { /*! Use SSLv3 for outgoing client connections */ AST_SSL_SSLV3_CLIENT = (1 << 4), /*! Use TLSv1 for outgoing client connections */ - AST_SSL_TLSV1_CLIENT = (1 << 5) + AST_SSL_TLSV1_CLIENT = (1 << 5), + /*! Use server cipher order instead of the client order */ + AST_SSL_SERVER_CIPHER_ORDER = (1 << 6), + /*! Disable TLSv1 support */ + AST_SSL_DISABLE_TLSV1 = (1 << 7), + /*! Disable TLSv1.1 support */ + AST_SSL_DISABLE_TLSV11 = (1 << 8), + /*! Disable TLSv1.2 support */ + AST_SSL_DISABLE_TLSV12 = (1 << 9), }; struct ast_tls_config { |