diff options
author | khorben <khorben@pkgsrc.org> | 2016-03-29 21:46:48 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2016-03-29 21:46:48 +0000 |
commit | 0e110e222320f22255669b1f003b9c9ffe1c1e55 (patch) | |
tree | f956ca9edc6b851679416ad6a784fb1bf81f4fb5 /net | |
parent | e74ff78ccf92e76109669b8e71eba863095e6da6 (diff) | |
download | pkgsrc-0e110e222320f22255669b1f003b9c9ffe1c1e55.tar.gz |
Fix build without support for SSLv2
Diffstat (limited to 'net')
-rw-r--r-- | net/pen/distinfo | 3 | ||||
-rw-r--r-- | net/pen/patches/patch-pen.c | 40 |
2 files changed, 42 insertions, 1 deletions
diff --git a/net/pen/distinfo b/net/pen/distinfo index e5dbff23f9a..5b501a1f0ab 100644 --- a/net/pen/distinfo +++ b/net/pen/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.10 2015/11/04 00:35:27 agc Exp $ +$NetBSD: distinfo,v 1.11 2016/03/29 21:46:48 khorben Exp $ SHA1 (pen-0.17.2.tar.gz) = 7277259c552b659ece6fef1d4bc55ca9fd927488 RMD160 (pen-0.17.2.tar.gz) = 3e7152cad72f3893c171db8e1c85cae37418aeb6 SHA512 (pen-0.17.2.tar.gz) = c84057ab6226f84cc3f024cf25bfb941be297fff42b2d027ad738ea8e7aaa88fec18668152c8dc283b19c93cd8ef8766430ef865d75a701dc1117148751e200a Size (pen-0.17.2.tar.gz) = 129285 bytes +SHA1 (patch-pen.c) = 1ece0ea00a12c5c1b3d31942e2d2fce6e3e2bf6f diff --git a/net/pen/patches/patch-pen.c b/net/pen/patches/patch-pen.c new file mode 100644 index 00000000000..476bd0287ff --- /dev/null +++ b/net/pen/patches/patch-pen.c @@ -0,0 +1,40 @@ +$NetBSD: patch-pen.c,v 1.1 2016/03/29 21:46:48 khorben Exp $ + +Fix build without support for SSLv2 + +--- pen.c.orig 2007-09-12 06:26:31.000000000 +0000 ++++ pen.c +@@ -56,7 +56,9 @@ + #include <openssl/err.h> + + #define SRV_SSL_V23 0 +-#define SRV_SSL_V2 1 ++#ifndef OPENSSL_NO_SSL2 ++# define SRV_SSL_V2 1 ++#endif + #define SRV_SSL_V3 2 + #define SRV_SSL_TLS1 3 + +@@ -327,9 +329,11 @@ static int ssl_init(void) + SSL_load_error_strings(); + SSLeay_add_ssl_algorithms(); + switch (ssl_protocol) { ++#ifndef OPENSSL_NO_SSL2 + case SRV_SSL_V2: + ssl_context = SSL_CTX_new(SSLv2_method()); + break; ++#endif + case SRV_SSL_V3: + ssl_context = SSL_CTX_new(SSLv3_method()); + break; +@@ -2625,8 +2629,10 @@ static int options(int argc, char **argv + case 'L': + if (strcmp(optarg, "ssl23") == 0) + ssl_protocol = SRV_SSL_V23; ++#ifndef OPENSSL_NO_SSL2 + else if (strcmp(optarg, "ssl2") == 0) + ssl_protocol = SRV_SSL_V2; ++#endif + else if (strcmp(optarg, "ssl3") == 0) + ssl_protocol = SRV_SSL_V3; + else if (strcmp(optarg, "tls1") == 0) |