From: hno <> Date: Sun, 20 Apr 2003 04:19:45 +0000 (+0000) Subject: Removed old code which has in full been replaced by other functions X-Git-Tag: SQUID_3_0_PRE1~249 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d9f2f2c6df7bbb33ce585096e3e2cd2ba44e770;p=thirdparty%2Fsquid.git Removed old code which has in full been replaced by other functions --- diff --git a/src/ssl_support.cc b/src/ssl_support.cc index d8f06eb329..22957cea4b 100644 --- a/src/ssl_support.cc +++ b/src/ssl_support.cc @@ -1,6 +1,6 @@ /* - * $Id: ssl_support.cc,v 1.14 2003/04/19 22:17:13 hno Exp $ + * $Id: ssl_support.cc,v 1.15 2003/04/19 22:19:45 hno Exp $ * * AUTHOR: Benno Rice * DEBUG: section 83 SSL accelerator support @@ -799,33 +799,6 @@ sslGetCAAttribute(SSL * ssl, const char *attribute_name) return ssl_get_attribute(name, attribute_name); } -#if 0 -char * -sslGetUserEmail(SSL * ssl) -{ - X509 *cert; - X509_NAME *name; - - static char email[128]; - - if (!ssl) - return NULL; - - cert = SSL_get_peer_certificate(ssl); - - if (!cert) - return NULL; - - name = X509_get_subject_name(cert); - - if (X509_NAME_get_text_by_NID(name, NID_pkcs9_emailAddress, email, sizeof(email)) > 0) - return email; - else - return NULL; -} - -#endif - const char * sslGetUserEmail(SSL * ssl) {