You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2012/05/29 11:12:05 UTC

svn commit: r1343613 - /tomcat/native/branches/1.1.x/native/src/sslinfo.c

Author: mturk
Date: Tue May 29 09:12:04 2012
New Revision: 1343613

URL: http://svn.apache.org/viewvc?rev=1343613&view=rev
Log:
Fix compile warnings by changing SSL api

Modified:
    tomcat/native/branches/1.1.x/native/src/sslinfo.c

Modified: tomcat/native/branches/1.1.x/native/src/sslinfo.c
URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/sslinfo.c?rev=1343613&r1=1343612&r2=1343613&view=diff
==============================================================================
--- tomcat/native/branches/1.1.x/native/src/sslinfo.c (original)
+++ tomcat/native/branches/1.1.x/native/src/sslinfo.c Tue May 29 09:12:04 2012
@@ -318,10 +318,10 @@ TCN_IMPLEMENT_CALL(jstring, SSLSocket, g
         break;
         case SSL_INFO_CIPHER_DESCRIPTION:
             {
-                const SSL_CIPHER *cipher = SSL_get_current_cipher(s->ssl);
+                SSL_CIPHER *cipher = (SSL_CIPHER *)SSL_get_current_cipher(s->ssl);
                 if (cipher) {
                     char buf[256];
-                    char *desc = SSL_CIPHER_description(cipher, buf, 256);
+                    const char *desc = SSL_CIPHER_description(cipher, buf, 256);
                     value = tcn_new_string(e, desc);
                 }
             }



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