You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2016/03/23 19:06:39 UTC

svn commit: r1736364 - /tomcat/native/trunk/native/src/sslinfo.c

Author: rjung
Date: Wed Mar 23 18:06:39 2016
New Revision: 1736364

URL: http://svn.apache.org/viewvc?rev=1736364&view=rev
Log:
Followup to r1736292: same change (X509_PUBKEY
is now opaque) in another place.

Modified:
    tomcat/native/trunk/native/src/sslinfo.c

Modified: tomcat/native/trunk/native/src/sslinfo.c
URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/src/sslinfo.c?rev=1736364&r1=1736363&r2=1736364&view=diff
==============================================================================
--- tomcat/native/trunk/native/src/sslinfo.c (original)
+++ tomcat/native/trunk/native/src/sslinfo.c Wed Mar 23 18:06:39 2016
@@ -427,6 +427,7 @@ TCN_IMPLEMENT_CALL(jstring, SSLSocket, g
     }
     else if (what & SSL_INFO_SERVER_MASK) {
         X509 *xs;
+        ASN1_OBJECT *paobj;
         char *result;
         int nid;
         if ((xs = SSL_get_certificate(s->ssl)) != NULL) {
@@ -451,7 +452,8 @@ TCN_IMPLEMENT_CALL(jstring, SSLSocket, g
                         value = tcn_new_string(e, OBJ_nid2ln(nid));
                 break;
                 case SSL_INFO_SERVER_A_KEY:
-                    nid = OBJ_obj2nid((ASN1_OBJECT *)(X509_get_X509_PUBKEY(xs)->algor->algorithm));
+                    X509_PUBKEY_get0_param(&paobj, NULL, 0, NULL, X509_get_X509_PUBKEY(xs));
+                    nid = OBJ_obj2nid(paobj);
                     if (nid == NID_undef)
                         value = tcn_new_string(e, "UNKNOWN");
                     else



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org