summaryrefslogtreecommitdiffstats
path: root/apps/apps.h
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2001-09-28 02:25:14 +0000
committerGeoff Thorpe <geoff@openssl.org>2001-09-28 02:25:14 +0000
commit34c66925aad7d10c034b0ddce99e1bfcf9a04ea8 (patch)
tree32e27851a1762c70d31cd9ea780040f1f11f357c /apps/apps.h
parentcb7fd76f572c6535856e882a6e9225163a45d977 (diff)
ENGINE_register_all_complete() will register all implementations of all
algorithms present in all loaded ENGINEs. The result is that if any of those ENGINEs successfully initialises, and the ENGINE_TABLE_FLAG_NOINIT flag isn't set, then they will always be used (and cached as defaults) in preference to software implementations. Ie. accidental auto-detection of acceleration hardware :-) This change stops all implementations being automatically registered in "openssl" sub-commands, so that the "setup_engine()" handler in apps.c controls which ENGINEs are registered for use. A special case has been added that will revert to this "auto-detect" logic, ie. if the "-engine" switch is used as; -engine auto
Diffstat (limited to 'apps/apps.h')
-rw-r--r--apps/apps.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/apps.h b/apps/apps.h
index 810710909c..57ca7659ae 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -127,20 +127,18 @@ extern BIO *bio_err;
# define apps_startup() \
do { _fmode=_O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
- ENGINE_load_builtin_engines(); ENGINE_register_all_complete(); \
- setup_ui_method(); } while(0)
+ ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
# else
# define apps_startup() \
do { _fmode=O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
- ENGINE_load_builtin_engines(); ENGINE_register_all_complete(); \
- setup_ui_method(); } while(0)
+ ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
# endif
# else
# define apps_startup() \
do { do_pipe_sig(); OpenSSL_add_all_algorithms(); \
ERR_load_crypto_strings(); ENGINE_load_builtin_engines(); \
- ENGINE_register_all_complete(); setup_ui_method(); } while(0)
+ setup_ui_method(); } while(0)
# endif
# define apps_shutdown() \
do { destroy_ui_method(); EVP_cleanup(); \