From: Richard Levitte Date: Thu, 24 Oct 2002 19:09:03 +0000 (+0000) Subject: For the mkdef.pl to recognise if the "external" engines are inserted X-Git-Tag: OpenSSL_0_9_7-beta4~18^2~115 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=6cb686208ebeade1e8cd029c6d5aaf575cc759f9 For the mkdef.pl to recognise if the "external" engines are inserted into libcrypto, we need the "algorithm" STATIC_ENGINE. --- diff --git a/Configure b/Configure index 60351404cc..084e7afce9 100755 --- a/Configure +++ b/Configure @@ -1122,6 +1122,11 @@ if ($no_shared) $cflags="-DOPENSSL_NO_DYNAMIC_ENGINE $cflags"; $openssl_other_defines.="#define OPENSSL_NO_DYNAMIC_ENGINE\n"; } +else + { + $cflags="-DOPENSSL_NO_STATIC_ENGINE $cflags"; + $openssl_other_defines.="#define OPENSSL_NO_STATIC_ENGINE\n"; + } if ($sys_id ne "") { diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index 77663742aa..3b951eb3e2 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -318,6 +318,7 @@ ENGINE *ENGINE_by_id(const char *id); /* Add all the built-in engines. */ void ENGINE_load_openssl(void); void ENGINE_load_dynamic(void); +#ifndef OPENSSL_NO_STATIC_ENGINE void ENGINE_load_cswift(void); void ENGINE_load_chil(void); void ENGINE_load_atalla(void); @@ -326,6 +327,7 @@ void ENGINE_load_ubsec(void); void ENGINE_load_aep(void); void ENGINE_load_sureware(void); void ENGINE_load_4758cca(void); +#endif void ENGINE_load_cryptodev(void); void ENGINE_load_builtin_engines(void); diff --git a/util/mkdef.pl b/util/mkdef.pl index db08e29b74..fffd1d9a7c 100755 --- a/util/mkdef.pl +++ b/util/mkdef.pl @@ -91,7 +91,9 @@ my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF", "BIO", "COMP", "BUFFER", "LHASH", "STACK", "ERR", "LOCKING", # External "algorithms" - "FP_API", "STDIO", "SOCK", "KRB5" ); + "FP_API", "STDIO", "SOCK", "KRB5", + # Engines + "STATIC_ENGINE" ); my $options=""; open(IN,"