allow non-FIPS
authorAlan T. DeKok <aland@freeradius.org>
Thu, 1 Sep 2016 19:26:34 +0000 (15:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 1 Sep 2016 19:31:50 +0000 (15:31 -0400)
src/modules/rlm_eap/libeap/mppe_keys.c

index 2fe03e3..3b3b9aa 100644 (file)
@@ -62,8 +62,10 @@ static void P_hash(const EVP_MD *evp_md,
 
        HMAC_CTX_init(&ctx_a);
        HMAC_CTX_init(&ctx_out);
+#ifdef EVP_MD_CTX_FLAG_NON_FIPS_ALLOW
        HMAC_CTX_set_flags(&ctx_a, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
        HMAC_CTX_set_flags(&ctx_out, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
+#endif
        HMAC_Init_ex(&ctx_a, secret, secret_len, evp_md, NULL);
        HMAC_Init_ex(&ctx_out, secret, secret_len, evp_md, NULL);