You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

  1. From 89bdc6148cd8cffb1483f4fc0aa14d636f8f5b4f Mon Sep 17 00:00:00 2001
  2. From: Bruno Silvestre <bruno.silvestre@gmail.com>
  3. Date: Fri, 29 Jun 2018 14:06:51 -0300
  4. Subject: [PATCH 2/3] Removing SSLv3 support
  5. ---
  6. src/config.c | 5 -----
  7. src/context.c | 3 ---
  8. 2 files changed, 8 deletions(-)
  9. diff --git a/src/config.c b/src/config.c
  10. index ce74997..6939fca 100644
  11. --- a/src/config.c
  12. +++ b/src/config.c
  13. @@ -32,11 +32,6 @@ LSEC_API int luaopen_ssl_config(lua_State *L)
  14. lua_pushstring(L, "protocols");
  15. lua_newtable(L);
  16. -#ifndef OPENSSL_NO_SSL3
  17. - lua_pushstring(L, "sslv3");
  18. - lua_pushboolean(L, 1);
  19. - lua_rawset(L, -3);
  20. -#endif
  21. lua_pushstring(L, "tlsv1");
  22. lua_pushboolean(L, 1);
  23. lua_rawset(L, -3);
  24. diff --git a/src/context.c b/src/context.c
  25. index b9e8cda..d8fc8b6 100644
  26. --- a/src/context.c
  27. +++ b/src/context.c
  28. @@ -66,9 +66,6 @@ static const SSL_METHOD* str2method(const char *method)
  29. {
  30. if (!strcmp(method, "any")) return SSLv23_method();
  31. if (!strcmp(method, "sslv23")) return SSLv23_method(); // deprecated
  32. -#ifndef OPENSSL_NO_SSL3
  33. - if (!strcmp(method, "sslv3")) return SSLv3_method();
  34. -#endif
  35. if (!strcmp(method, "tlsv1")) return TLSv1_method();
  36. #if (OPENSSL_VERSION_NUMBER >= 0x1000100fL)
  37. if (!strcmp(method, "tlsv1_1")) return TLSv1_1_method();
  38. --
  39. 2.19.1