openssl-pkcs11/openssl-pkcs11-0.4.10-set-rsa-fips-method-flag.patch
Anderson Toshiyuki Sasaki daf0430199 Set RSA_FLAG_FIPS_METHOD for RSA methods
This makes the engine to set the flag regardless of the used device.  It
is the user responsibility to ensure the device is FIPS-140-2 certified.

Resolves: rhbz#1827535

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2020-04-27 17:55:03 +02:00

12 lines
470 B
Diff

--- a/src/p11_rsa.c 2019-04-03 21:58:18.000000000 +0200
+++ b/src/p11_rsa.c 2019-11-28 15:46:18.898258545 +0100
@@ -478,7 +478,7 @@
if (ops == NULL)
return NULL;
RSA_meth_set1_name(ops, "libp11 RSA method");
- RSA_meth_set_flags(ops, 0);
+ RSA_meth_set_flags(ops, RSA_FLAG_FIPS_METHOD);
RSA_meth_set_priv_enc(ops, pkcs11_rsa_priv_enc_method);
RSA_meth_set_priv_dec(ops, pkcs11_rsa_priv_dec_method);
RSA_meth_set_finish(ops, pkcs11_rsa_free_method);