Commit 1f67a3a9 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

compress_meth should be unsigned

parent 4cba294d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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