From 87f3435f78b6fafddf504595c7bbfaf538e8065b Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Tue, 13 Jun 2000 18:11:38 +0000 Subject: [PATCH] This hooks the "hwcrhk" engine Richard just submitted into the default engine list if HW_NCIPHER is defined. I want to play :-) --- crypto/engine/engine_int.h | 4 ++++ crypto/engine/engine_list.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/crypto/engine/engine_int.h b/crypto/engine/engine_int.h index 94f9d30d80..cddf12f6e6 100644 --- a/crypto/engine/engine_int.h +++ b/crypto/engine/engine_int.h @@ -129,6 +129,10 @@ ENGINE *ENGINE_openssl(); ENGINE *ENGINE_cswift(); #endif /* HW_CSWIFT */ +#ifdef HW_NCIPHER +ENGINE *ENGINE_hwcrhk(); +#endif /* HW_NCIPHER */ + #ifdef __cplusplus } #endif diff --git a/crypto/engine/engine_list.c b/crypto/engine/engine_list.c index 171540e1a6..c91b43cb83 100644 --- a/crypto/engine/engine_list.c +++ b/crypto/engine/engine_list.c @@ -188,6 +188,10 @@ static int engine_internal_check(void) #ifdef HW_CSWIFT if(!engine_list_add(ENGINE_cswift())) return 0; +#endif /* HW_CSWIFT */ +#ifdef HW_NCIPHER + if(!engine_list_add(ENGINE_hwcrhk())) + return 0; #endif /* HW_CSWIFT */ engine_list_flag = 1; return 1;