Clean up crypto makefile segments
[libeap.git] / src / crypto / crypto_libtomcrypt.c
index c701f55..10dd133 100644 (file)
@@ -699,7 +699,7 @@ void crypto_global_deinit(void)
 }
 
 
-#if defined(EAP_FAST) || defined(EAP_SERVER_FAST)
+#ifdef CONFIG_MODEXP
 
 int crypto_mod_exp(const u8 *base, size_t base_len,
                   const u8 *power, size_t power_len,
@@ -731,7 +731,7 @@ fail:
        return -1;
 }
 
-#endif /* EAP_FAST || EAP_SERVER_FAST */
+#endif /* CONFIG_MODEXP */
 
 #endif /* CONFIG_TLS_INTERNAL */