rearrange #includes because trying to include <crypto/cryptodev.h>
is a bad idea if OPENSSL_OPENBSD_DEV_CRYPTO is not defined
This commit is contained in:
parent
72849dce81
commit
931a23a5a5
@ -47,21 +47,22 @@
|
|||||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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 <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <crypto/cryptodev.h>
|
#include <crypto/cryptodev.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <openssl/evp.h>
|
|
||||||
#include <openssl/objects.h>
|
|
||||||
#include <openssl/rsa.h>
|
|
||||||
#include "evp_locl.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
/* check flag after headers to ensure make depend works */
|
|
||||||
#ifdef OPENSSL_OPENBSD_DEV_CRYPTO
|
|
||||||
|
|
||||||
/* longest key supported in hardware */
|
/* longest key supported in hardware */
|
||||||
#define MAX_HW_KEY 24
|
#define MAX_HW_KEY 24
|
||||||
#define MAX_HW_IV 8
|
#define MAX_HW_IV 8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user