-/* $OpenBSD: apps.c,v 1.26 2015/06/16 02:27:24 doug Exp $ */
+/* $OpenBSD: apps.c,v 1.27 2015/06/19 07:18:58 bcook Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
}
#ifndef OPENSSL_NO_ENGINE
-/* Try to load an engine in a shareable library */
-static ENGINE *
-try_load_engine(BIO *err, const char *engine, int debug)
-{
- ENGINE *e = ENGINE_by_id("dynamic");
-
- if (e) {
- if (!ENGINE_ctrl_cmd_string(e, "SO_PATH", engine, 0) ||
- !ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0)) {
- ENGINE_free(e);
- e = NULL;
- }
- }
- return e;
-}
ENGINE *
setup_engine(BIO *err, const char *engine, int debug)
ENGINE_register_all_complete();
return NULL;
}
- if ((e = ENGINE_by_id(engine)) == NULL &&
- (e = try_load_engine(err, engine, debug)) == NULL) {
+ if ((e = ENGINE_by_id(engine)) == NULL) {
BIO_printf(err, "invalid engine \"%s\"\n", engine);
ERR_print_errors(err);
return NULL;