X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fp_dec.c;h=4201dcbad99e1e800616ac8091f5642ec1924cc0;hp=fca333d78ae9f69c427d4c17b26a299624f73612;hb=9f375a752ecad52372fae4b70c151aac602ea435;hpb=13e91dd365887c7ff26dc3ff18d42266e5393f2d diff --git a/crypto/evp/p_dec.c b/crypto/evp/p_dec.c index fca333d78a..4201dcbad9 100644 --- a/crypto/evp/p_dec.c +++ b/crypto/evp/p_dec.c @@ -58,28 +58,25 @@ #include #include "cryptlib.h" -#include "rand.h" -#ifndef NO_RSA -#include "rsa.h" +#include +#ifndef OPENSSL_NO_RSA +#include #endif -#include "evp.h" -#include "objects.h" -#include "x509.h" +#include +#include +#include -int EVP_PKEY_decrypt(key,ek,ekl,priv) -unsigned char *key; -unsigned char *ek; -int ekl; -EVP_PKEY *priv; +int EVP_PKEY_decrypt_old(unsigned char *key, const unsigned char *ek, int ekl, + EVP_PKEY *priv) { int ret= -1; -#ifndef NO_RSA +#ifndef OPENSSL_NO_RSA if (priv->type != EVP_PKEY_RSA) { #endif - EVPerr(EVP_F_EVP_PKEY_DECRYPT,EVP_R_PUBLIC_KEY_NOT_RSA); -#ifndef NO_RSA + EVPerr(EVP_F_EVP_PKEY_DECRYPT_OLD,EVP_R_PUBLIC_KEY_NOT_RSA); +#ifndef OPENSSL_NO_RSA goto err; }