diff --git a/server/core/service.c b/server/core/service.c index be05932ae..9822ac881 100644 --- a/server/core/service.c +++ b/server/core/service.c @@ -1966,13 +1966,14 @@ int serviceInitSSL(SERVICE* service) case SERVICE_TLS10: service->method = (SSL_METHOD*)TLSv1_server_method(); break; +#ifdef OPENSSL_1_0 case SERVICE_TLS11: service->method = (SSL_METHOD*)TLSv1_1_server_method(); break; case SERVICE_TLS12: service->method = (SSL_METHOD*)TLSv1_2_server_method(); break; - +#endif /** Rest of these use the maximum available SSL/TLS methods */ case SERVICE_SSL_MAX: service->method = (SSL_METHOD*)SSLv23_server_method(); diff --git a/server/include/service.h b/server/include/service.h index 3337ebfc0..b64270b9e 100644 --- a/server/include/service.h +++ b/server/include/service.h @@ -117,8 +117,10 @@ typedef enum { enum{ SERVICE_SSLV3, SERVICE_TLS10, +#ifdef OPENSSL_1_0 SERVICE_TLS11, SERVICE_TLS12, +#endif SERVICE_SSL_MAX, SERVICE_TLS_MAX, SERVICE_SSL_TLS_MAX