diff options
author | Fangming.Fang <fangming.fang@arm.com> | 2021-02-25 08:21:56 +0000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-02 21:25:00 +1000 |
commit | d7d8e2c894e242f7e4d25f986c5ff15758853b67 (patch) | |
tree | 11e807d086b4fb783a66c06dbc7c8c96b3c94d7d | |
parent | 025c0f5289d9f124dac799fe4eeb663035736df2 (diff) |
Fix compiling error on arm
Fixes #14313
Change-Id: I0dc9dd475a1ed1331738355fbbec0c51fbcb37f1
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14346)
-rw-r--r-- | test/p_test.c | 10 |
1 files 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; |