Lines 1-19
Link Here
|
1 |
--- tls.c.orig Tue Dec 14 16:23:14 2004 |
|
|
2 |
+++ tls.c Thu Jan 20 11:35:58 2005 |
3 |
@@ -194,6 +194,7 @@ |
4 |
char *line; |
5 |
int ntype; |
6 |
struct in_addr addr; |
7 |
+ int alt_ext; |
8 |
|
9 |
if ( inet_aton( host, &addr )) { |
10 |
ntype = IS_IP4; |
11 |
@@ -239,7 +240,7 @@ |
12 |
/* This code gratiously borrowed from openldap-2.2.17, |
13 |
* it allows the use of aliases in the certificate. |
14 |
*/ |
15 |
- int alt_ext = X509_get_ext_by_NID( peer, NID_subject_alt_name, -1); |
16 |
+ alt_ext = X509_get_ext_by_NID( peer, NID_subject_alt_name, -1); |
17 |
|
18 |
if ( alt_ext >= 0 ) { |
19 |
X509_EXTENSION *ex; |