Various cleanup of PROV_R_ reason codes
[openssl.git] / providers / implementations / encode_decode / encode_key2any.c
index a8c9432f2da714720804dd60ae66ed5107439afe..8f868249ee81194420cc43b41d1c12f725386a75 100644 (file)
@@ -96,7 +96,7 @@ static X509_SIG *p8info_to_encp8(PKCS8_PRIV_KEY_INFO *p8info,
 
     if (!ossl_pw_get_passphrase(kstr, sizeof(kstr), &klen, NULL, 1,
                                 &ctx->pwdata)) {
 
     if (!ossl_pw_get_passphrase(kstr, sizeof(kstr), &klen, NULL, 1,
                                 &ctx->pwdata)) {
-        ERR_raise(ERR_LIB_PROV, PROV_R_READ_KEY);
+        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PASSPHRASE);
         return NULL;
     }
     /* First argument == -1 means "standard" */
         return NULL;
     }
     /* First argument == -1 means "standard" */