From 2f8f8e6fc941b4cc80e29fc1d553445b13a6a789 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 8 Jul 2021 10:55:01 +1000 Subject: [PATCH] test: add a shim function for the apps's opt_legacy_okay() function Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16022) --- test/testutil/apps_shims.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/test/testutil/apps_shims.c b/test/testutil/apps_shims.c index ef5e266b250..53d851ffda3 100644 --- a/test/testutil/apps_shims.c +++ b/test/testutil/apps_shims.c @@ -28,3 +28,29 @@ void *app_malloc(size_t sz, const char *what) } return vp; } + +/* shim to prevent sucking in too much from apps */ + +int opt_legacy_okay(void) +{ + return 1; +} + +/* + * These three functions are defined here so that they don't need to come from + * the apps source code and pull in a lot of additional things. + */ +int opt_provider_option_given(void) +{ + return 0; +} + +const char *app_get0_propq(void) +{ + return NULL; +} + +OSSL_LIB_CTX *app_get0_libctx(void) +{ + return NULL; +} -- 2.47.3