[openssl] master update

Dr. Paul Dale pauli at openssl.org
Sat Jul 17 07:53:12 UTC 2021


The branch master has been updated
       via  2cff17fdb8bfd46ac8d72208a6538d91217cd629 (commit)
      from  c3c00c7acd040f8e410fffffb5808d2f1c3ac9b9 (commit)


- Log -----------------------------------------------------------------
commit 2cff17fdb8bfd46ac8d72208a6538d91217cd629
Author: Matt Caswell <matt at openssl.org>
Date:   Wed Jul 14 15:36:12 2021 +0100

    Fix signed/unsigned comparison warnings in sslapitest
    
    Fixes build failures if using enable-ktls in conjunction with --strict-warnings
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16090)

-----------------------------------------------------------------------

Summary of changes:
 test/sslapitest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/sslapitest.c b/test/sslapitest.c
index 49f7ef639d..cc11eebc54 100644
--- a/test/sslapitest.c
+++ b/test/sslapitest.c
@@ -1436,7 +1436,7 @@ static int test_ktls(int test)
     struct ktls_test_cipher *cipher;
     int cis_ktls, sis_ktls;
 
-    OPENSSL_assert(test / 4 < NUM_KTLS_TEST_CIPHERS);
+    OPENSSL_assert(test / 4 < (int)NUM_KTLS_TEST_CIPHERS);
     cipher = &ktls_test_ciphers[test / 4];
 
     cis_ktls = (test & 1) != 0;
@@ -1450,7 +1450,7 @@ static int test_ktls_sendfile(int tst)
 {
     struct ktls_test_cipher *cipher;
 
-    OPENSSL_assert(tst < NUM_KTLS_TEST_CIPHERS);
+    OPENSSL_assert(tst < (int)NUM_KTLS_TEST_CIPHERS);
     cipher = &ktls_test_ciphers[tst];
 
     return execute_test_ktls_sendfile(cipher->tls_version, cipher->cipher);


More information about the openssl-commits mailing list