1
0

patch-main_tcptls_c 705 B

12345678910111213141516
  1. --- asterisk-1.8.28.2.orig/main/tcptls.c 2014-06-13 07:06:27.000000000 +0200
  2. +++ asterisk-1.8.28.2/main/tcptls.c 2016-09-25 20:47:30.313327069 +0200
  3. @@ -753,9 +753,12 @@ static int __ssl_setup(struct ast_tls_co
  4. cfg->ssl_ctx = SSL_CTX_new(SSLv2_client_method());
  5. } else
  6. #endif
  7. +#ifndef OPENSSL_NO_SSL3_METHOD
  8. if (ast_test_flag(&cfg->flags, AST_SSL_SSLV3_CLIENT)) {
  9. cfg->ssl_ctx = SSL_CTX_new(SSLv3_client_method());
  10. - } else if (ast_test_flag(&cfg->flags, AST_SSL_TLSV1_CLIENT)) {
  11. + } else
  12. +#endif
  13. + if (ast_test_flag(&cfg->flags, AST_SSL_TLSV1_CLIENT)) {
  14. cfg->ssl_ctx = SSL_CTX_new(TLSv1_client_method());
  15. } else {
  16. /* SSLv23_client_method() sends SSLv2, this was the original