Change RNG test to block oriented instead of request oriented, add option
[openssl.git] / crypto / mem.c
index 347c0d81843c90c2ec0fbc11154f55fc60bbfb9b..7bd29d6766ea3f00d7d5a3f7782add2200822626 100644 (file)
@@ -121,10 +121,13 @@ static void (*set_debug_options_func)(long) = NULL;
 static long (*get_debug_options_func)(void) = NULL;
 #endif
 
+extern void OPENSSL_init(void);
 
 int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t),
        void (*f)(void *))
        {
+       /* Dummy call just to ensure OPENSSL_init() gets linked in */
+       OPENSSL_init();
        if (!allow_customize)
                return 0;
        if ((m == 0) || (r == 0) || (f == 0))