diff options
author | Richard Levitte <levitte@openssl.org> | 2015-08-10 10:46:27 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-08-11 20:27:46 +0100 |
commit | c0cbb4c19bb6e22b338dd17c096be323f7414faf (patch) | |
tree | fb69e70b5e3cfd36962384657ed3796dc6ca8480 /engines/e_ossltest.c | |
parent | c2a34c58f56980b80f034e8295210146b5c247c3 (diff) |
Use dynamic engine for libssl test harness
Use a dynamic engine for ossltest engine so that we can build it without
subsequently deploying it during install. We do not want people accidentally
using this engine.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'engines/e_ossltest.c')
-rw-r--r-- | engines/e_ossltest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/e_ossltest.c b/engines/e_ossltest.c index 689e5321ca..6e50a5fcea 100644 --- a/engines/e_ossltest.c +++ b/engines/e_ossltest.c @@ -257,7 +257,7 @@ static int bind_ossltest(ENGINE *e) return 1; } -#ifdef ENGINE_DYNAMIC_SUPPORT +#ifndef OPENSSL_NO_DYNAMIC_ENGINE static int bind_helper(ENGINE *e, const char *id) { if (id && (strcmp(id, engine_ossltest_id) != 0)) @@ -269,7 +269,8 @@ static int bind_helper(ENGINE *e, const char *id) IMPLEMENT_DYNAMIC_CHECK_FN() IMPLEMENT_DYNAMIC_BIND_FN(bind_helper) -#else +#endif + static ENGINE *engine_ossltest(void) { ENGINE *ret = ENGINE_new(); @@ -292,7 +293,6 @@ void ENGINE_load_ossltest(void) ENGINE_free(toadd); ERR_clear_error(); } -#endif static int ossltest_init(ENGINE *e) |