Add a comment to indicate ineffective macro
authorShreenidhi Shedi <sshedi@vmware.com>
Wed, 12 Jan 2022 15:25:38 +0000 (20:55 +0530)
committerMatt Caswell <matt@openssl.org>
Fri, 14 Jan 2022 09:27:13 +0000 (09:27 +0000)
EVP_MD_CTX_FLAG_NON_FIPS_ALLOW macro is obsolete and unused from
openssl-3.0 onwards

CLA: trivial

Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17484)

include/openssl/evp.h

index 1850381720ca198dcc44f923ffbb2fd20c870f74..be57127e364d94d7fb9cd1b7f323b9dffa670cb1 100644 (file)
@@ -205,8 +205,8 @@ int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,
  * don't accidentally reuse the values for other purposes.
  */
 
-# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW  0x0008/* Allow use of non FIPS
-                                                * digest in FIPS mode */
+/* This flag has no effect from openssl-3.0 onwards */
+# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW  0x0008
 
 /*
  * The following PAD options are also currently ignored in 1.0.0, digest