summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-03-20 23:29:06 +0000
committerRichard Levitte <levitte@openssl.org>2003-03-20 23:29:06 +0000
commitc7e7fc3ee42c03313b4957ea23db3b6f40d3affb (patch)
treed6ab523293737e97b9d23c34409d9469f3e4b14c
parent786b0075d5c07a1211d35c2db214632901b90b5b (diff)
Make sure we get the definition of OPENSSL_NO_RC2.
-rw-r--r--crypto/evp/e_rc2.c5
-rw-r--r--crypto/rc2/rc2.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/crypto/evp/e_rc2.c b/crypto/evp/e_rc2.c
index d42cbfd17e..3932f60e59 100644
--- a/crypto/evp/e_rc2.c
+++ b/crypto/evp/e_rc2.c
@@ -56,10 +56,11 @@
* [including the GNU Public Licence.]
*/
-#ifndef OPENSSL_NO_RC2
-
#include <stdio.h>
#include "cryptlib.h"
+
+#ifndef OPENSSL_NO_RC2
+
#include <openssl/evp.h>
#include <openssl/objects.h>
#include "evp_locl.h"
diff --git a/crypto/rc2/rc2.h b/crypto/rc2/rc2.h
index 7816b454dc..34c8362317 100644
--- a/crypto/rc2/rc2.h
+++ b/crypto/rc2/rc2.h
@@ -59,6 +59,7 @@
#ifndef HEADER_RC2_H
#define HEADER_RC2_H
+#include <openssl/opensslconf.h> /* OPENSSL_NO_RC2, RC2_INT */
#ifdef OPENSSL_NO_RC2
#error RC2 is disabled.
#endif
@@ -66,7 +67,6 @@
#define RC2_ENCRYPT 1
#define RC2_DECRYPT 0
-#include <openssl/opensslconf.h> /* RC2_INT */
#define RC2_BLOCK 8
#define RC2_KEY_LENGTH 16