[openssl] master update

Dr. Paul Dale pauli at openssl.org
Mon Mar 25 02:36:03 UTC 2019


The branch master has been updated
       via  f4b4574f4bc8b3099c34162332e317bd314e35a1 (commit)
      from  9c0cf214e7836eb5aaf1ea5d3cbf6720533f86b5 (commit)


- Log -----------------------------------------------------------------
commit f4b4574f4bc8b3099c34162332e317bd314e35a1
Author: Shane Lontis <shane.lontis at oracle.com>
Date:   Mon Mar 25 11:37:24 2019 +1000

    replaced snprintf with BIO version (for windows builds)
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/8571)

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

Summary of changes:
 test/provider_internal_test.c | 6 +++---
 test/provider_test.c          | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/provider_internal_test.c b/test/provider_internal_test.c
index ca554b8..7f6bb20 100644
--- a/test/provider_internal_test.c
+++ b/test/provider_internal_test.c
@@ -35,9 +35,9 @@ static int test_provider(OSSL_PROVIDER *prov)
     if (!TEST_ptr(name = ossl_provider_name(prov)))
         return 0;
 
-    snprintf(expected_greeting, sizeof(expected_greeting),
-             "Hello OpenSSL %.20s, greetings from %s!",
-             OPENSSL_VERSION_STR, name);
+    BIO_snprintf(expected_greeting, sizeof(expected_greeting),
+                 "Hello OpenSSL %.20s, greetings from %s!",
+                 OPENSSL_VERSION_STR, name);
 
     ret =
         TEST_true(ossl_provider_activate(prov))
diff --git a/test/provider_test.c b/test/provider_test.c
index eefafcf..3de9266 100644
--- a/test/provider_test.c
+++ b/test/provider_test.c
@@ -32,7 +32,7 @@ static int test_provider(const char *name)
     const char *greeting = NULL;
     char expected_greeting[256];
 
-    snprintf(expected_greeting, sizeof(expected_greeting),
+    BIO_snprintf(expected_greeting, sizeof(expected_greeting),
              "Hello OpenSSL %.20s, greetings from %s!",
              OPENSSL_VERSION_STR, name);
 


More information about the openssl-commits mailing list