A few train of thoughts about the build procedure mess
[openssl.git] / crypto / evp / p_enc.c
index a26bfad02aa2a74f959f694d1815d204f39792fd..a902b5ebdfe7429151b7d69bf5c3555f65104f95 100644 (file)
@@ -59,7 +59,9 @@
 #include <stdio.h>
 #include "cryptlib.h"
 #include "rand.h"
+#ifndef NO_RSA
 #include "rsa.h"
+#endif
 #include "evp.h"
 #include "objects.h"
 #include "x509.h"
@@ -72,12 +74,16 @@ EVP_PKEY *pubk;
        {
        int ret=0;
        
+#ifndef NO_RSA
        if (pubk->type != EVP_PKEY_RSA)
                {
+#endif
                EVPerr(EVP_F_EVP_PKEY_ENCRYPT,EVP_R_PUBLIC_KEY_NOT_RSA);
+#ifndef NO_RSA
                goto err;
                }
        ret=RSA_public_encrypt(key_len,key,ek,pubk->pkey.rsa,RSA_PKCS1_PADDING);
 err:
+#endif
        return(ret);
        }