Commit 66aa8566 authored by Richard Levitte's avatar Richard Levitte
Browse files

No need to include anything on systems that do not have /dev/crypt

parent f559f31b
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -53,6 +53,16 @@
 *
 */

#ifndef OPENSSL_OPENBSD_DEV_CRYPTO

void ENGINE_load_openbsd_dev_crypto(void)
	{
	/* This is a NOP unless OPENSSL_OPENBSD_DEV_CRYPTO is defined */
	return;
	}

#else /* OPENSSL_OPENBSD_DEV_CRYPTO */

#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
@@ -65,16 +75,6 @@
/* Maybe this is needed? ... */
#include "../evp/evp_locl.h"

#ifndef OPENSSL_OPENBSD_DEV_CRYPTO

void ENGINE_load_openbsd_dev_crypto(void)
	{
	/* This is a NOP unless OPENSSL_OPENBSD_DEV_CRYPTO is defined */
	return;
	}

#else /* OPENSSL_OPENBSD_DEV_CRYPTO */

#include <crypto/cryptodev.h>

/****************************************************/