]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_kernel.c (ssl_callback_Info): Cast away the
authorJoe Orton <jorton@apache.org>
Tue, 17 Nov 2009 09:54:56 +0000 (09:54 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 17 Nov 2009 09:54:56 +0000 (09:54 +0000)
  constness of SSL * before calling SSL_get_state, to fix warning with
  older OpenSSLs.

Reported by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@881222 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_kernel.c

index 1249bd1505d29aca88b0a55ef0cd55929544c421..34f3ffd14ae2ef4f93644b4ef52a07af7b9cf20b 100644 (file)
@@ -1940,7 +1940,7 @@ void ssl_callback_Info(MODSSL_INFO_CB_ARG_TYPE ssl, int where, int rc)
      * state machine and move to ABORT if a Client Hello is being
      * read. */
     if ((where & SSL_CB_ACCEPT_LOOP) && scr->reneg_state == RENEG_REJECT) {
-        int state = SSL_get_state(ssl);
+        int state = SSL_get_state((SSL *)ssl);
         
         if (state == SSL3_ST_SR_CLNT_HELLO_A 
             || state == SSL23_ST_SR_CLNT_HELLO_A) {