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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]