Module: sip-router Branch: master Commit: 7c7ed8ad9d62bd501bd2c856a01689a84a0c0711 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7c7ed8ad...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Feb 24 10:24:29 2012 +0100
tls: check for support of ssl2
- latest distros with newer ssl lib are removing the ssl2 support
---
modules/tls/tls_init.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/tls/tls_init.c b/modules/tls/tls_init.c index cc16598..70338b1 100644 --- a/modules/tls/tls_init.c +++ b/modules/tls/tls_init.c @@ -333,10 +333,12 @@ int tls_h_init_si(struct socket_info *si) */ static void init_ssl_methods(void) { +#ifndef OPENSSL_NO_SSL2 ssl_methods[TLS_USE_SSLv2_cli - 1] = SSLv2_client_method(); ssl_methods[TLS_USE_SSLv2_srv - 1] = SSLv2_server_method(); ssl_methods[TLS_USE_SSLv2 - 1] = SSLv2_method(); - +#endif + ssl_methods[TLS_USE_SSLv3_cli - 1] = SSLv3_client_method(); ssl_methods[TLS_USE_SSLv3_srv - 1] = SSLv3_server_method(); ssl_methods[TLS_USE_SSLv3 - 1] = SSLv3_method();