From f07ac77811476b35d8017e6f8510d86ac21bbe10 Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 24 2020 08:41:39 +0000 Subject: Apply patch openssl-pkcs11-0.4.10-set-rsa-fips-method-flag.patch patch_name: openssl-pkcs11-0.4.10-set-rsa-fips-method-flag.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/src/p11_rsa.c b/src/p11_rsa.c index e699009..02d15cb 100644 --- a/src/p11_rsa.c +++ b/src/p11_rsa.c @@ -478,7 +478,7 @@ RSA_METHOD *PKCS11_get_rsa_method(void) 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);