From 27516f7c9762c2b21ff4add87aa5b7ac41237575 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 12 Jul 2016 10:26:56 -0700 Subject: [PATCH] Add no-op function ENGINE_register_all_complete. libssh2 expects this function. Change-Id: Ie2d6ceb25d1b633e1363e82f8a6c187b75a4319f Reviewed-on: https://boringssl-review.googlesource.com/8735 Reviewed-by: David Benjamin --- crypto/crypto.c | 4 ++++ include/openssl/crypto.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/crypto/crypto.c b/crypto/crypto.c index c9f2bc87..24431267 100644 --- a/crypto/crypto.c +++ b/crypto/crypto.c @@ -153,6 +153,10 @@ int CRYPTO_malloc_init(void) { void ENGINE_load_builtin_engines(void) {} +int ENGINE_register_all_complete(void) { + return 1; +} + void OPENSSL_load_builtin_modules(void) {} int FIPS_mode(void) { return 0; } diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index 80d71969..3a7e6b1b 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -77,6 +77,9 @@ OPENSSL_EXPORT int CRYPTO_malloc_init(void); /* ENGINE_load_builtin_engines does nothing. */ OPENSSL_EXPORT void ENGINE_load_builtin_engines(void); +/* ENGINE_register_all_complete returns one. */ +OPENSSL_EXPORT int ENGINE_register_all_complete(void); + /* OPENSSL_load_builtin_modules does nothing. */ OPENSSL_EXPORT void OPENSSL_load_builtin_modules(void);