PROV: Add type specific PKCS#8 decoding to the DER->key decoders
[openssl.git] / crypto / rsa / rsa_lib.c
index 89cd4da5277daa6ab07dea02250e1cc115a35ec1..bfd274a66aefda14fa88e4baa6d68dac1d3c1546 100644 (file)
@@ -657,6 +657,18 @@ const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r)
 #endif
 }
 
+/* Internal */
+int ossl_rsa_set0_pss_params(RSA *r, RSA_PSS_PARAMS *pss)
+{
+#ifdef FIPS_MODULE
+    return 0;
+#else
+    RSA_PSS_PARAMS_free(r->pss);
+    r->pss = pss;
+    return 1;
+#endif
+}
+
 /* Internal */
 RSA_PSS_PARAMS_30 *ossl_rsa_get0_pss_params_30(RSA *r)
 {