From b70e4d3e904e30796efaed77ac149e4b9e945826 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 21 Nov 2013 15:47:19 +0000 Subject: [PATCH] Fixes for no-static-engine and Windows builds. --- crypto/engine/eng_all.c | 6 +++--- crypto/engine/engine.h | 8 ++++---- util/libeay.num | 2 +- util/pl/VC-32.pl | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c index f29c167c06..8a1b9c7c6a 100644 --- a/crypto/engine/eng_all.c +++ b/crypto/engine/eng_all.c @@ -102,14 +102,14 @@ void ENGINE_load_builtin_engines(void) #if !defined(OPENSSL_NO_GMP) && !defined(OPENSSL_NO_HW_GMP) ENGINE_load_gmp(); #endif +#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG) + ENGINE_load_capi(); +#endif #endif #ifndef OPENSSL_NO_HW #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) ENGINE_load_cryptodev(); #endif -#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG) - ENGINE_load_capi(); -#endif #endif } diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index d4bc1efc79..b4e0444fb8 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -335,15 +335,15 @@ void ENGINE_load_gmp(void); void ENGINE_load_nuron(void); void ENGINE_load_sureware(void); void ENGINE_load_ubsec(void); -#endif -void ENGINE_load_cryptodev(void); -void ENGINE_load_padlock(void); -void ENGINE_load_builtin_engines(void); #ifdef OPENSSL_SYS_WIN32 #ifndef OPENSSL_NO_CAPIENG void ENGINE_load_capi(void); #endif #endif +#endif +void ENGINE_load_cryptodev(void); +void ENGINE_load_padlock(void); +void ENGINE_load_builtin_engines(void); /* Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation * "registry" handling. */ diff --git a/util/libeay.num b/util/libeay.num index 46d3b835c5..93a64ca3a6 100755 --- a/util/libeay.num +++ b/util/libeay.num @@ -3658,7 +3658,7 @@ ENGINE_set_ld_ssl_clnt_cert_fn 4044 EXIST:VMS:FUNCTION:ENGINE ENGINE_get_ssl_client_cert_function 4045 EXIST:!VMS:FUNCTION:ENGINE ENGINE_get_ssl_client_cert_fn 4045 EXIST:VMS:FUNCTION:ENGINE ENGINE_load_ssl_client_cert 4046 EXIST::FUNCTION:ENGINE -ENGINE_load_capi 4047 EXIST:WIN32:FUNCTION:CAPIENG,ENGINE +ENGINE_load_capi 4047 EXIST:WIN32:FUNCTION:CAPIENG,ENGINE,STATIC_ENGINE OPENSSL_isservice 4048 EXIST::FUNCTION: FIPS_dsa_sig_decode 4049 EXIST:OPENSSL_FIPS:FUNCTION:DSA EVP_CIPHER_CTX_clear_flags 4050 EXIST::FUNCTION: diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index 5001557e7d..2db008cc82 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -337,7 +337,7 @@ sub do_lib_rule else { my $ex = ""; - if ($target =~ /O_SSL/) + if ($target !~ /O_CRYPTO/) { $ex .= " \$(L_CRYPTO)"; #$ex .= " \$(L_FIPS)" if $fipsdso; -- 2.25.1