return NULL;
}
-EVP_PKEY *evp_privatekey_from_binary(int keytype, EVP_PKEY **a,
- const unsigned char **pp, long length,
- OSSL_LIB_CTX *libctx, const char *propq)
+static EVP_PKEY *
+d2i_PrivateKey_legacy(int keytype, EVP_PKEY **a, const unsigned char **pp,
+ long length, OSSL_LIB_CTX *libctx, const char *propq)
{
EVP_PKEY *ret;
const unsigned char *p = *pp;
ret = d2i_PrivateKey_decoder(keytype, a, pp, length, libctx, propq);
/* try the legacy path if the decoder failed */
if (ret == NULL)
- ret = evp_privatekey_from_binary(keytype, a, pp, length, libctx, propq);
+ ret = d2i_PrivateKey_legacy(keytype, a, pp, length, libctx, propq);
return ret;
}
keytype = EVP_PKEY_RSA;
}
sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free);
- return evp_privatekey_from_binary(keytype, a, pp, length, libctx, propq);
+ return d2i_PrivateKey_legacy(keytype, a, pp, length, libctx, propq);
}
/*