From 94a1183fabc872c8c89a04f6d256f883e98c8e72 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 8 Aug 2003 10:08:14 +0000 Subject: [PATCH] Avoid clashing with the regular DES functions when not compiling with -DFIPS. This is basically only visible when building with shared library supoort... --- fips/des/fips_des_enc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fips/des/fips_des_enc.c b/fips/des/fips_des_enc.c index 9bb3e1cb0..e1c06e306 100644 --- a/fips/des/fips_des_enc.c +++ b/fips/des/fips_des_enc.c @@ -58,6 +58,8 @@ #include "fips_des_locl.h" +#ifdef FIPS + void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc) { register DES_LONG l,r,t,u; @@ -286,3 +288,10 @@ void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1, data[0]=l; data[1]=r; } + +#else /* ndef FIPS */ + +static void *dummy=&dummy; + +#endif /* ndef FIPS */ +