]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fixed type mismatch between OpenSSL 0.9.7 <-> 0.9.8 and later.
authorGuenter Knauf <fuankg@apache.org>
Thu, 27 Dec 2007 22:30:46 +0000 (22:30 +0000)
committerGuenter Knauf <fuankg@apache.org>
Thu, 27 Dec 2007 22:30:46 +0000 (22:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@607132 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_scache_shmht.c

index 1db5cb9d1b85da4d2ce9d47f1f425ebcf1646d09..28def647de8f8097b262db5e246e07786b013470 100644 (file)
@@ -198,7 +198,7 @@ SSL_SESSION *ssl_scache_shmht_retrieve(server_rec *s, UCHAR *id, int idlen)
     SSLModConfigRec *mc = myModConfig(s);
     void *vp;
     SSL_SESSION *sess = NULL;
-    UCHAR *ucpData;
+    MODSSL_D2I_SSL_SESSION_CONST UCHAR *ucpData;
     int nData;
     time_t expiry;
     time_t now;
@@ -223,7 +223,7 @@ SSL_SESSION *ssl_scache_shmht_retrieve(server_rec *s, UCHAR *id, int idlen)
         return NULL;
     }
     memcpy(&expiry, vp, sizeof(time_t));
-    memcpy(ucpData, (char *)vp+sizeof(time_t), nData);
+    memcpy((void *)ucpData, (char *)vp+sizeof(time_t), nData);
     ssl_mutex_off(s);
 
     /* make sure the stuff is still not expired */