diff --git a/crypto/crypto.c b/crypto/crypto.c index 9f4639f2..57527122 100644 --- a/crypto/crypto.c +++ b/crypto/crypto.c @@ -164,31 +164,21 @@ int CRYPTO_has_asm(void) { #endif } -const char *SSLeay_version(int unused) { - return "BoringSSL"; -} +const char *SSLeay_version(int unused) { return "BoringSSL"; } -const char *OpenSSL_version(int unused) { - return "BoringSSL"; -} +const char *OpenSSL_version(int unused) { return "BoringSSL"; } -unsigned long SSLeay(void) { - return OPENSSL_VERSION_NUMBER; -} +unsigned long SSLeay(void) { return OPENSSL_VERSION_NUMBER; } -unsigned long OpenSSL_version_num(void) { - return OPENSSL_VERSION_NUMBER; -} +unsigned long OpenSSL_version_num(void) { return OPENSSL_VERSION_NUMBER; } -int CRYPTO_malloc_init(void) { - return 1; -} +int CRYPTO_malloc_init(void) { return 1; } + +int OPENSSL_malloc_init(void) { return 1; } void ENGINE_load_builtin_engines(void) {} -int ENGINE_register_all_complete(void) { - return 1; -} +int ENGINE_register_all_complete(void) { return 1; } void OPENSSL_load_builtin_modules(void) {} diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index ccf5012c..cc6fc3ca 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -92,6 +92,9 @@ OPENSSL_EXPORT unsigned long OpenSSL_version_num(void); // CRYPTO_malloc_init returns one. OPENSSL_EXPORT int CRYPTO_malloc_init(void); +// OPENSSL_malloc_init returns one. +OPENSSL_EXPORT int OPENSSL_malloc_init(void); + // ENGINE_load_builtin_engines does nothing. OPENSSL_EXPORT void ENGINE_load_builtin_engines(void);