diff --git a/src/ssl.c b/src/ssl.c index 581836dac..571445365 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -8226,14 +8226,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) if (!ses || t < 0) return BAD_FUNC_ARG; - /* for cross library compatibility accept a long but convert it to a - word32 (unsigned 32 bit) for wolfSSL sessions */ - if ( (t >> 32) > 0) { - WOLFSSL_MSG("Session time is to large"); - return BAD_FUNC_ARG; - } else { - time = t & 0xFFFFFFFF; - } + time = t & 0xFFFFFFFF; ses->timeout = time; diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 4dcb5ec76..02518c06b 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -4283,7 +4283,7 @@ int dh_test(void) fclose(file); #endif /* USE_CERT_BUFFERS */ - (void)idx; + (void)idx; (void)tmp; (void)bytes;