size_t-fication of message digest APIs. We should size_t-fy more APIs...
[openssl.git] / crypto / evp / p_dec.c
index 57b5daa4538e46b2ab94402e071e764b5eb807e8..f64901f653495b1961b75da6d539fb76b292288f 100644 (file)
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/rand.h>
-#ifndef NO_RSA
+#ifndef OPENSSL_NO_RSA
 #include <openssl/rsa.h>
 #endif
 #include <openssl/evp.h>
 #include <openssl/objects.h>
 #include <openssl/x509.h>
 
-int EVP_PKEY_decrypt(unsigned char *key, unsigned char *ek, int ekl,
+int EVP_PKEY_decrypt(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
+#ifndef OPENSSL_NO_RSA
                goto err;
                 }