[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
radmind patch for gcc2
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: radmind patch for gcc2
- From: bsd_(_at_)_openbsd_(_dot_)_rutgers_(_dot_)_edu
- Date: Thu, 27 Jan 2005 11:17:27 -0500
radmind 1.4.0 won't build on systems using gcc 2 without this.
Thanks
--- tls.c.orig Wed Jan 26 15:20:43 2005
+++ tls.c Wed Jan 26 15:21:12 2005
@@ -195,6 +195,8 @@
int ntype;
struct in_addr addr;
+ int alt_ext;
+
if ( inet_aton( host, &addr )) {
ntype = IS_IP4;
} else {
@@ -239,7 +241,7 @@
/* 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;
Visit your host, monkey.org