hostapd: Fix internal crypto build without TLS
[wpasupplicant] / src / tls / rsa.c
index bfc0d52..4965a2a 100644 (file)
@@ -35,6 +35,7 @@ struct crypto_rsa_key {
 };
 
 
+#ifdef EAP_TLS_FUNCS
 static const u8 * crypto_rsa_parse_integer(const u8 *pos, const u8 *end,
                                           struct bignum *num)
 {
@@ -223,6 +224,7 @@ error:
        crypto_rsa_free(key);
        return NULL;
 }
+#endif /* EAP_TLS_FUNCS */
 
 
 /**