]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix from ssl-2.5 2004/09/06 16:59:21
authorhno <>
Fri, 18 Mar 2005 21:43:33 +0000 (21:43 +0000)
committerhno <>
Fri, 18 Mar 2005 21:43:33 +0000 (21:43 +0000)
Fix user_cert and ca_cert acls.. was mixed up making user_cert match
what ca_cert should have mathed and the reverse.

Found by Fauquet, Xavier

src/ssl_support.cc

index 212977f863f85d3b4ef6b272b2daaf94aab685da..72b3a26b60842a155f8d198ed42c0c78267d2508 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ssl_support.cc,v 1.20 2004/12/20 16:30:36 robertc Exp $
+ * $Id: ssl_support.cc,v 1.21 2005/03/18 14:43:33 hno Exp $
  *
  * AUTHOR: Benno Rice
  * DEBUG: section 83    SSL accelerator support
@@ -808,7 +808,7 @@ sslGetUserAttribute(SSL * ssl, const char *attribute_name)
     if (!cert)
         return NULL;
 
-    name = X509_get_issuer_name(cert);
+    name = X509_get_subject_name(cert);
 
     return ssl_get_attribute(name, attribute_name);
 }
@@ -827,7 +827,7 @@ sslGetCAAttribute(SSL * ssl, const char *attribute_name)
     if (!cert)
         return NULL;
 
-    name = X509_get_subject_name(cert);
+    name = X509_get_issuer_name(cert);
 
     return ssl_get_attribute(name, attribute_name);
 }