[openssl] master update

Dr. Paul Dale pauli at openssl.org
Tue Mar 2 11:25:21 UTC 2021


The branch master has been updated
       via  d7d8e2c894e242f7e4d25f986c5ff15758853b67 (commit)
      from  025c0f5289d9f124dac799fe4eeb663035736df2 (commit)


- Log -----------------------------------------------------------------
commit d7d8e2c894e242f7e4d25f986c5ff15758853b67
Author: Fangming.Fang <fangming.fang at arm.com>
Date:   Thu Feb 25 08:21:56 2021 +0000

    Fix compiling error on arm
    
    Fixes #14313
    
    Change-Id: I0dc9dd475a1ed1331738355fbbec0c51fbcb37f1
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14346)

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

Summary of changes:
 test/p_test.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/p_test.c b/test/p_test.c
index 57597086aa..02a822c486 100644
--- a/test/p_test.c
+++ b/test/p_test.c
@@ -115,11 +115,15 @@ static int p_get_params(void *provctx, OSSL_PARAM params[])
 }
 
 static void p_set_error(int lib, int reason, const char *file, int line,
-                        const char *func)
+                        const char *func, const char *fmt, ...)
 {
+    va_list ap;
+
+    va_start(ap, fmt);
     c_new_error(NULL);
     c_set_error_debug(NULL, file, line, func);
-    c_vset_error(NULL, ERR_PACK(lib, 0, reason), NULL, NULL);
+    c_vset_error(NULL, ERR_PACK(lib, 0, reason), fmt, ap);
+    va_end(ap);
 }
 
 static const OSSL_ITEM *p_get_reason_strings(void *_)
@@ -192,7 +196,7 @@ int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
      * Set a spurious error to check error handling works correctly. This will
      * be ignored
      */
-    p_set_error(ERR_LIB_PROV, 1, ctx->thisfile, OPENSSL_LINE, ctx->thisfunc);
+    p_set_error(ERR_LIB_PROV, 1, ctx->thisfile, OPENSSL_LINE, ctx->thisfunc, NULL);
 
     *provctx = (void *)ctx;
     *out = p_test_table;


More information about the openssl-commits mailing list