aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-09-03 12:37:13 +0000
committerBodo Möller <bodo@openssl.org>2001-09-03 12:37:13 +0000
commit931a23a5a55d153db9a0a76ee27e28af90be86e6 (patch)
tree6f8406df63e52e6ae9d096178408241fa7530a54 /crypto
parent72849dce817d3bec5e40b73ea295ac4f1e9fc98e (diff)
downloadopenssl-931a23a5a55d153db9a0a76ee27e28af90be86e6.tar.gz
rearrange #includes because trying to include <crypto/cryptodev.h>
is a bad idea if OPENSSL_OPENBSD_DEV_CRYPTO is not defined
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/openbsd_hw.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/crypto/evp/openbsd_hw.c b/crypto/evp/openbsd_hw.c
index b4ac72dbcb..550145e494 100644
--- a/crypto/evp/openbsd_hw.c
+++ b/crypto/evp/openbsd_hw.c
@@ -47,21 +47,22 @@
* 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