# ifdef _O_BINARY
# 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(); \
- setup_ui_method(); } while(0)
+ ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
+ ENGINE_load_builtin_engines(); ENGINE_register_all_complete(); \
+ 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(); \
- setup_ui_method(); } while(0)
+ ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
+ ENGINE_load_builtin_engines(); ENGINE_register_all_complete(); \
+ 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(); setup_ui_method(); } while(0)
+ ERR_load_crypto_strings(); ENGINE_load_builtin_engines(); \
+ ENGINE_register_all_complete(); setup_ui_method(); } while(0)
# endif
# define apps_shutdown() \
do { destroy_ui_method(); EVP_cleanup(); \
{
int cap_size = 256;
char *cap_buf = NULL;
+#if 0 /* Awaiting EVP_[CIPHER|DIGEST] refit */
int k,n;
+#endif
if (ENGINE_get_RSA(e) != NULL
&& !append_buf(&cap_buf, "RSA",
&cap_size, 256))
goto end;
+#if 0
n=ENGINE_cipher_num(e);
for(k=0 ; k < n ; ++k)
if(!append_buf(&cap_buf,
OBJ_nid2sn(ENGINE_get_cipher(e, k)->nid),
&cap_size, 256))
goto end;
+#endif
if (cap_buf && (*cap_buf != '\0'))
BIO_printf(bio_out, " [%s]", cap_buf);