RAND_pseudo_bytes is good enough for encryption IVs,
[openssl.git] / crypto / evp / p_open.c
index e6af915c01d228e41f85c3f680e7871c1db00da5..b9ca7892c2e92f6e0bda0912c4c43b503413314c 100644 (file)
  * [including the GNU Public Licence.]
  */
 
+#ifndef NO_RSA
 #include <stdio.h>
 #include "cryptlib.h"
-#include "evp.h"
-#include "objects.h"
-#include "x509.h"
+#include <openssl/evp.h>
+#include <openssl/objects.h>
+#include <openssl/x509.h>
 
 int EVP_OpenInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char *ek,
             int ekl, unsigned char *iv, EVP_PKEY *priv)
@@ -109,3 +110,10 @@ int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
        EVP_DecryptInit(ctx,NULL,NULL,NULL);
        return(i);
        }
+#else /* !NO_RSA */
+
+# ifdef PEDANTIC
+static void *dummy=&dummy;
+# endif
+
+#endif