Do not implement RC4 stuff if RC4 is disabled. Concequently, apply the same
authorRichard Levitte <levitte@openssl.org>
Wed, 4 Dec 2002 22:54:13 +0000 (22:54 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 4 Dec 2002 22:54:13 +0000 (22:54 +0000)
rule for SHA stuff.
PR: 381

crypto/engine/eng_openssl.c

index 9253ac6d1008ada4c01dd1e278e804deea0ab48c..54579eea2e67a6b64b469c6efa331b3f1d87a14c 100644 (file)
 /* #define TEST_ENG_OPENSSL_SHA_P_UPDATE */
 /* #define TEST_ENG_OPENSSL_SHA_P_FINAL */
 
+/* Now check what of those algorithms are actually enabled */
+#ifdef OPENSSL_NO_RC4
+#undef TEST_ENG_OPENSSL_RC4
+#undef TEST_ENG_OPENSSL_RC4_OTHERS
+#undef TEST_ENG_OPENSSL_RC4_P_INIT
+#undef TEST_ENG_OPENSSL_RC4_P_CIPHER
+#endif
+#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA0) || defined(OPENSSL_NO_SHA1)
+#undef TEST_ENG_OPENSSL_SHA
+#undef TEST_ENG_OPENSSL_SHA_OTHERS
+#undef TEST_ENG_OPENSSL_SHA_P_INIT
+#undef TEST_ENG_OPENSSL_SHA_P_UPDATE
+#undef TEST_ENG_OPENSSL_SHA_P_FINAL 
+#endif
+
 #ifdef TEST_ENG_OPENSSL_RC4
 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
                                const int **nids, int nid);