Cast to size_t to avoid MSVC warning.

Previously:
..\ssl\t1_lib.c(2160) : warning C4018: '<' : signed/unsigned mismatch

Change-Id: I342e2ac1de71e9335659f5e5ed13423b1c7860d7
This commit is contained in:
Adam Langley 2015-05-05 12:04:01 -07:00
parent 9362b6e235
commit 3457cd943a

View File

@ -2157,7 +2157,7 @@ static int tls_decrypt_ticket(SSL *s, const uint8_t *etick, int eticklen,
/* First, check the MAC. The MAC is at the end of the ticket. */
mlen = HMAC_size(&hctx);
if (eticklen < 16 + EVP_CIPHER_CTX_iv_length(&ctx) + 1 + mlen) {
if ((size_t) eticklen < 16 + EVP_CIPHER_CTX_iv_length(&ctx) + 1 + mlen) {
/* The ticket must be large enough for key name, IV, data, and MAC. */
HMAC_CTX_cleanup(&hctx);
EVP_CIPHER_CTX_cleanup(&ctx);