openbsd-ports/security/ocaml-ssl/patches/patch-src_ssl_stubs_c
jca 6de4db87dc Update to ocaml-ssl-0.5.1
Tweak the SSLv3 patch so that a generic error is produced when SSLv3 is
unavailable, instead of asking the user to report a bug upstream.
2015-10-09 00:28:23 +00:00

25 lines
613 B
Plaintext

$OpenBSD: patch-src_ssl_stubs_c,v 1.3 2015/10/09 00:28:24 jca Exp $
Fixed in
https://github.com/savonet/ocaml-ssl/commit/8f698ba93028f0b399f75079d4369f44db82182c
--- src/ssl_stubs.c.orig Wed May 27 09:56:10 2015
+++ src/ssl_stubs.c Tue Oct 6 19:12:01 2015
@@ -290,6 +290,7 @@ static const SSL_METHOD *get_method(int protocol, int
break;
case 1:
+#ifndef OPENSSL_NO_SSL3
switch (type)
{
case 0:
@@ -304,6 +305,7 @@ static const SSL_METHOD *get_method(int protocol, int
method = SSLv3_method();
break;
}
+#endif
break;
case 2: