Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 94899 invoked from network); 12 Jul 2005 13:59:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2005 13:59:14 -0000 Received: (qmail 34106 invoked by uid 500); 12 Jul 2005 13:59:04 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 34063 invoked by uid 500); 12 Jul 2005 13:59:04 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 34050 invoked by uid 500); 12 Jul 2005 13:59:03 -0000 Received: (qmail 34047 invoked by uid 99); 12 Jul 2005 13:59:03 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 12 Jul 2005 06:58:51 -0700 Received: (qmail 94569 invoked by uid 1526); 12 Jul 2005 13:58:49 -0000 Date: 12 Jul 2005 13:58:49 -0000 Message-ID: <20050712135849.94568.qmail@minotaur.apache.org> From: mturk@apache.org To: jakarta-tomcat-connectors-cvs@apache.org Subject: cvs commit: jakarta-tomcat-connectors/jni/native/src sslinfo.c X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N mturk 2005/07/12 06:58:49 Modified: jni/native/src sslinfo.c Log: Get int param for obtaining the number of certificates in the chain, so that we don't rely on the first exception for getting the certificate. Revision Changes Path 1.10 +8 -1 jakarta-tomcat-connectors/jni/native/src/sslinfo.c Index: sslinfo.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/sslinfo.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- sslinfo.c 12 Jul 2005 13:43:59 -0000 1.9 +++ sslinfo.c 12 Jul 2005 13:58:49 -0000 1.10 @@ -521,6 +521,13 @@ } } break; + case SSL_INFO_CLIENT_CERT_CHAIN: + { + X509 *xs; + STACK_OF(X509) *sk = SSL_get_peer_cert_chain(s->ssl); + value = sk_X509_num(sk); + } + break; default: tcn_ThrowAPRException(e, APR_EINVAL); break; --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org