X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fevp%2Fp_dec.c;h=4201dcbad99e1e800616ac8091f5642ec1924cc0;hb=4ad2d3ac0ef338a064c6df3b5437d974def538ba;hp=0533a8490774cab414c420f24db27c7ee4f776fe;hpb=6b691a5c85ddc4e407e32781841fee5c029506cd;p=oweals%2Fopenssl.git diff --git a/crypto/evp/p_dec.c b/crypto/evp/p_dec.c index 0533a84907..4201dcbad9 100644 --- a/crypto/evp/p_dec.c +++ b/crypto/evp/p_dec.c @@ -58,25 +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(unsigned char *key, unsigned char *ek, int ekl, +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; }