summaryrefslogtreecommitdiff
path: root/sysutils/radmind/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-01-26 14:11:34 +0000
committerwiz <wiz@pkgsrc.org>2005-01-26 14:11:34 +0000
commit72f595644e5548646241a17bcb7bf10cf5e64ca7 (patch)
tree116e3a6812a6c196996aa92f6e8543d4ad464da0 /sysutils/radmind/patches
parent4ec1d9b286c9862940b57ddc4d53361a5d13a878 (diff)
downloadpkgsrc-72f595644e5548646241a17bcb7bf10cf5e64ca7.tar.gz
Fix build with gcc2. From Hauke Fath.
Diffstat (limited to 'sysutils/radmind/patches')
-rw-r--r--sysutils/radmind/patches/patch-ac23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/radmind/patches/patch-ac b/sysutils/radmind/patches/patch-ac
new file mode 100644
index 00000000000..08551ea58ff
--- /dev/null
+++ b/sysutils/radmind/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1 2005/01/26 14:11:34 wiz Exp $
+
+--- tls.c.orig 2005-01-26 15:07:39.000000000 +0100
++++ tls.c
+@@ -194,7 +194,8 @@ tls_client_start( SNET *sn, char *host,
+ char *line;
+ int ntype;
+ struct in_addr addr;
+-
++ int alt_ext;
++
+ if ( inet_aton( host, &addr )) {
+ ntype = IS_IP4;
+ } else {
+@@ -239,7 +240,7 @@ tls_client_start( SNET *sn, char *host,
+ /* This code gratiously borrowed from openldap-2.2.17,
+ * it allows the use of aliases in the certificate.
+ */
+- int alt_ext = X509_get_ext_by_NID( peer, NID_subject_alt_name, -1);
++ alt_ext = X509_get_ext_by_NID( peer, NID_subject_alt_name, -1);
+
+ if ( alt_ext >= 0 ) {
+ X509_EXTENSION *ex;