tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/src sslinfo.c
Date Tue, 12 Jul 2005 13:58:49 GMT
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


Mime
View raw message