When the "dynamic" ENGINE loads another ENGINE from a shared-library, it
[openssl.git] / crypto / engine / hw_openbsd_dev_crypto.c
index 1309176da866f0a3db4867af44d2a864fc41b8d6..bf0b8ea16126ef25b767304b9fffd3240b5bd6b8 100644 (file)
  *
  */
 
+#include <openssl/engine.h>
+#include <openssl/evp.h>
+#include "eng_int.h"
+/* Maybe this is needed? ... */
+#ifdef FLAT_INC
+#include "evp_locl.h"
+#else
+#include "../evp/evp_locl.h"
+#endif
+
 #ifndef OPENSSL_OPENBSD_DEV_CRYPTO
 
 void ENGINE_load_openbsd_dev_crypto(void)
@@ -66,14 +76,9 @@ void ENGINE_load_openbsd_dev_crypto(void)
 #include <fcntl.h>
 #include <stdio.h>
 #include <errno.h>
-#include <unistd.h>
 #include <assert.h>
+#include <unistd.h>
 #include <sys/ioctl.h>
-#include <openssl/engine.h>
-#include <openssl/evp.h>
-#include "eng_int.h"
-/* Maybe this is needed? ... */
-#include "../evp/evp_locl.h"
 
 #include <crypto/cryptodev.h>