rearrange #includes because trying to include <crypto/cryptodev.h>
authorBodo Möller <bodo@openssl.org>
Mon, 3 Sep 2001 12:37:13 +0000 (12:37 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 3 Sep 2001 12:37:13 +0000 (12:37 +0000)
is a bad idea if OPENSSL_OPENBSD_DEV_CRYPTO is not defined

crypto/evp/openbsd_hw.c

index b4ac72dbcbfe9e87ae1c5a1647b46cf79fb396a5..550145e4948b2d1638ae842f502e5af64d08bcb9 100644 (file)
  * OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <openssl/evp.h>
+#include <openssl/objects.h>
+#include <openssl/rsa.h>
+#include "evp_locl.h"
+
+/* check flag after OpenSSL headers to ensure make depend works */
+#ifdef OPENSSL_OPENBSD_DEV_CRYPTO
+
 #include <fcntl.h>
 #include <stdio.h>
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <crypto/cryptodev.h>
 #include <unistd.h>
-#include <openssl/evp.h>
-#include <openssl/objects.h>
-#include <openssl/rsa.h>
-#include "evp_locl.h"
 #include <assert.h>
 
-/* check flag after headers to ensure make depend works */
-#ifdef OPENSSL_OPENBSD_DEV_CRYPTO
-
 /* longest key supported in hardware */
 #define MAX_HW_KEY     24
 #define MAX_HW_IV      8