Ticket #10812: 510-no_sslv2.patch

File 510-no_sslv2.patch, 445 bytes (added by Marcos Tadeu <marcos@…>, 6 years ago)
  • src/tool_getparam.c

    a b static ParameterError getparameter(char  
    25352537      /* TLS version 1 */ 
    25362538      config->ssl_version = CURL_SSLVERSION_TLSv1; 
    25372539      break; 
     2540#ifndef OPENSSL_NO_SSL2 
    25382541    case '2': 
    25392542      /* SSL version 2 */ 
    25402543      config->ssl_version = CURL_SSLVERSION_SSLv2; 
    25412544      break; 
     2545#endif 
    25422546    case '3': 
    25432547      /* SSL version 3 */ 
    25442548      config->ssl_version = CURL_SSLVERSION_SSLv3;