summaryrefslogtreecommitdiff
path: root/net/SSLtelnet
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-02-21 14:44:51 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-02-21 14:44:51 +0000
commita6dfff85ceff4476eb85c3b0748f95e872f367db (patch)
tree6d05740c3743a3fa7f66112df80859fdca6303f0 /net/SSLtelnet
parento Small cleaning of a doc file (diff)
Ugh, this code defines `extern' and then includes non-application
headers. Hack around the hack. The fact that this port was broken with OpenSSL 0.9.7 was Reported by: kris
Notes
Notes: svn path=/head/; revision=76049
Diffstat (limited to 'net/SSLtelnet')
-rw-r--r--net/SSLtelnet/files/patch-ad31
1 files changed, 28 insertions, 3 deletions
diff --git a/net/SSLtelnet/files/patch-ad b/net/SSLtelnet/files/patch-ad
index 09ee0ce1b39d..72aea01f9043 100644
--- a/net/SSLtelnet/files/patch-ad
+++ b/net/SSLtelnet/files/patch-ad
@@ -1,6 +1,31 @@
---- lib/libtelnet/sslapp.h.orig Fri Oct 16 21:14:59 1998
-+++ lib/libtelnet/sslapp.h Fri Oct 16 21:15:07 1998
-@@ -53,6 +53,7 @@
+--- lib/libtelnet/sslapp.h.orig Sat Aug 2 00:56:21 1997
++++ lib/libtelnet/sslapp.h Fri Feb 21 08:39:17 2003
+@@ -12,6 +12,12 @@
+ *
+ */
+
++/* Hack upon hack */
++#ifdef extern
++#define SSLAPP_EXTERN
++#undef extern
++#endif
++
+ #ifdef USE_SSL
+
+ #include <stdio.h>
+@@ -41,6 +47,11 @@
+ #include "x509.h"
+ #include "ssl.h"
+
++#ifdef SSLAPP_EXTERN
++#define extern
++#undef SSLAPP_EXTERN
++#endif
++
+ extern BIO *bio_err;
+ extern SSL *ssl_con;
+ extern SSL_CTX *ssl_ctx;
+@@ -53,6 +64,7 @@
extern int ssl_disabled_flag;
extern int ssl_cert_required;
extern int ssl_certsok_flag;