diff options
author | Bodo Möller <bodo@openssl.org> | 2001-09-03 12:37:13 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-09-03 12:37:13 +0000 |
commit | 931a23a5a55d153db9a0a76ee27e28af90be86e6 (patch) | |
tree | 6f8406df63e52e6ae9d096178408241fa7530a54 /crypto | |
parent | 72849dce817d3bec5e40b73ea295ac4f1e9fc98e (diff) | |
download | openssl-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.c | 15 |
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 |