From: William A. Rowe Jr Date: Sun, 17 Mar 2002 17:31:34 +0000 (+0000) Subject: Fix a signedness emit based on session_id_length [unsigned] X-Git-Tag: CHANGES~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9738c5be8e09ed64b00d19abba83cf97e09dcf4f;p=apache Fix a signedness emit based on session_id_length [unsigned] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93981 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_scache_shmcb.c b/modules/ssl/ssl_scache_shmcb.c index d2707ca460..49b79457cc 100644 --- a/modules/ssl/ssl_scache_shmcb.c +++ b/modules/ssl/ssl_scache_shmcb.c @@ -289,8 +289,8 @@ static BOOL shmcb_get_division(SHMCBHeader *, SHMCBQueue *, SHMCBCache *, unsign static SHMCBIndex *shmcb_get_index(const SHMCBQueue *, unsigned int); static unsigned int shmcb_expire_division(server_rec *, SHMCBQueue *, SHMCBCache *); static BOOL shmcb_insert_encoded_session(server_rec *, SHMCBQueue *, SHMCBCache *, unsigned char *, unsigned int, unsigned char *, time_t); -static SSL_SESSION *shmcb_lookup_session_id(server_rec *, SHMCBQueue *, SHMCBCache *, UCHAR *, int); -static BOOL shmcb_remove_session_id(server_rec *, SHMCBQueue *, SHMCBCache *, UCHAR *, int); +static SSL_SESSION *shmcb_lookup_session_id(server_rec *, SHMCBQueue *, SHMCBCache *, UCHAR *, unsigned int); +static BOOL shmcb_remove_session_id(server_rec *, SHMCBQueue *, SHMCBCache *, UCHAR *, unsigned int); /* * Data-alignment functions (a.k.a. avoidance tactics) @@ -1207,7 +1207,7 @@ static BOOL shmcb_insert_encoded_session( static SSL_SESSION *shmcb_lookup_session_id( server_rec *s, SHMCBQueue *queue, SHMCBCache *cache, UCHAR *id, - int idlen) + unsigned int idlen) { unsigned char tempasn[SSL_SESSION_MAX_DER]; SHMCBIndex *idx; @@ -1272,7 +1272,7 @@ static SSL_SESSION *shmcb_lookup_session_id( static BOOL shmcb_remove_session_id( server_rec *s, SHMCBQueue *queue, - SHMCBCache *cache, UCHAR *id, int idlen) + SHMCBCache *cache, UCHAR *id, unsigned int idlen) { unsigned char tempasn[SSL_SESSION_MAX_DER]; SSL_SESSION *pSession = NULL;