apps_startup() needs a corresponding apps_shutdown().
This commit is contained in:
parent
4f272c17f5
commit
870d986131
18
apps/apps.h
18
apps/apps.h
@ -116,26 +116,30 @@ extern BIO *bio_err;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MONOLITH) && !defined(OPENSSL_C)
|
#if defined(MONOLITH) && !defined(OPENSSL_C)
|
||||||
# define apps_startup() do_pipe_sig()
|
# define apps_startup() \
|
||||||
|
do_pipe_sig()
|
||||||
|
# define apps_shutdown()
|
||||||
#else
|
#else
|
||||||
# if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WIN16) || \
|
# if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WIN16) || \
|
||||||
defined(OPENSSL_SYS_WIN32)
|
defined(OPENSSL_SYS_WIN32)
|
||||||
# ifdef _O_BINARY
|
# ifdef _O_BINARY
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
_fmode=_O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
do { _fmode=_O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
||||||
OpenSSL_add_all_algorithms(); ENGINE_load_builtin_engines(); \
|
OpenSSL_add_all_algorithms(); ENGINE_load_builtin_engines(); \
|
||||||
setup_ui_method();
|
setup_ui_method(); } while(0)
|
||||||
# else
|
# else
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
_fmode=O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
do { _fmode=O_BINARY; do_pipe_sig(); CRYPTO_malloc_init(); \
|
||||||
OpenSSL_add_all_algorithms(); ENGINE_load_builtin_engines(); \
|
OpenSSL_add_all_algorithms(); ENGINE_load_builtin_engines(); \
|
||||||
setup_ui_method();
|
setup_ui_method(); } while(0)
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
do_pipe_sig(); OpenSSL_add_all_algorithms(); \
|
do { do_pipe_sig(); OpenSSL_add_all_algorithms(); \
|
||||||
ENGINE_load_builtin_engines(); setup_ui_method();
|
ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
|
||||||
# endif
|
# endif
|
||||||
|
# define apps_shutdown() \
|
||||||
|
destroy_ui_method()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct args_st
|
typedef struct args_st
|
||||||
|
@ -350,7 +350,8 @@ end:
|
|||||||
ERR_free_strings();
|
ERR_free_strings();
|
||||||
|
|
||||||
ENGINE_cleanup();
|
ENGINE_cleanup();
|
||||||
destroy_ui_method();
|
|
||||||
|
apps_shutdown();
|
||||||
|
|
||||||
CRYPTO_mem_leaks(bio_err);
|
CRYPTO_mem_leaks(bio_err);
|
||||||
if (bio_err != NULL)
|
if (bio_err != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user