compress_meth should be unsigned

This commit is contained in:
Dr. Stephen Henson 2010-01-05 16:46:39 +00:00
parent 4cba294d79
commit 1f67a3a985
2 changed files with 2 additions and 2 deletions

@ -902,7 +902,7 @@ int ssl3_get_server_hello(SSL *s)
}
#else
j= *(p++);
if (s->hit && j != (int)s->session->compress_meth)
if (s->hit && j != s->session->compress_meth)
{
al=SSL_AD_ILLEGAL_PARAMETER;
SSLerr(SSL_F_SSL3_GET_SERVER_HELLO,SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED);

@ -485,7 +485,7 @@ typedef struct ssl_session_st
long timeout;
long time;
int compress_meth; /* Need to lookup the method */
unsigned int compress_meth; /* Need to lookup the method */
const SSL_CIPHER *cipher;
unsigned long cipher_id; /* when ASN.1 loaded, this