From 203ac694e3511a0b7cccfe0feb26a4a5d7d58f2f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 29 May 2008 23:47:40 +0000 Subject: [PATCH] Load CryptoAPI engine if supported. --- crypto/engine/eng_all.c | 3 +++ crypto/engine/engine.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c index 8599046717..46f35fa2ad 100644 --- a/crypto/engine/eng_all.c +++ b/crypto/engine/eng_all.c @@ -107,6 +107,9 @@ void ENGINE_load_builtin_engines(void) #if defined(__OpenBSD__) || defined(__FreeBSD__) ENGINE_load_cryptodev(); #endif +#endif +#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG) + ENGINE_load_capi(); #endif } diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index 3ec59338ff..5c6e7063fa 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -334,6 +334,9 @@ void ENGINE_load_ubsec(void); void ENGINE_load_cryptodev(void); void ENGINE_load_padlock(void); void ENGINE_load_builtin_engines(void); +#ifndef OPENSSL_NO_CAPIENG +void ENGINE_load_capi(void); +#endif /* Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation * "registry" handling. */