From: Pauli Date: Thu, 8 Jul 2021 00:55:01 +0000 (+1000) Subject: test: add a shim function for the apps's opt_legacy_okay() function X-Git-Tag: openssl-3.0.0-beta2~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f8f8e6fc941b4cc80e29fc1d553445b13a6a789;p=thirdparty%2Fopenssl.git 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) --- 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; +}