]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix missing-macro errors
authorNick Mathewson <nickm@torproject.org>
Thu, 9 Jul 2015 20:34:51 +0000 (16:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Jul 2015 20:34:51 +0000 (16:34 -0400)
src/test/test_crypto_slow.c

index 41b8b97a8a8d5985a0e3e19ee2fa6d7054a0e004..2bd76f2cae4d11c49350f5d8b8e4fe44674bce65 100644 (file)
@@ -129,7 +129,7 @@ test_crypto_s2k_general(void *arg)
   }
 }
 
-#if defined(HAVE_LIBSCRYPT_H) && HAVE_EVP_PBE_SCRYPT
+#if defined(HAVE_LIBSCRYPT_H) && defined(HAVE_EVP_PBE_SCRYPT)
 static void
 test_libscrypt_eq_openssl(void *arg)
 {
@@ -502,7 +502,7 @@ struct testcase_t slow_crypto_tests[] = {
     (void*)"scrypt" },
   { "s2k_scrypt_low", test_crypto_s2k_general, 0, &passthrough_setup,
     (void*)"scrypt-low" },
-#if HAVE_EVP_PBE_SCRYPT
+#ifdef HAVE_EVP_PBE_SCRYPT
   { "libscrypt_eq_openssl", test_libscrypt_eq_openssl, 0, NULL, NULL },
 #endif
 #endif