cryptodev.patch

lentferj, 01/02/2010 11:24 AM

Download (4.81 KB)

View differences:

crypto/openssl/apps/speed.c
108 108
#include <signal.h>
109 109
#endif
110 110

  
111
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(OPENSSL_SYS_MACOSX)
111
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(OPENSSL_SYS_MACOSX) ||defined(__DragonFly__)
112 112
# define USE_TOD
113 113
#elif !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VXWORKS) && (!defined(OPENSSL_SYS_VMS) || defined(__DECC))
114 114
# define TIMES
115 115
#endif
116
#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(OPENSSL_SYS_MPE) && !defined(__NetBSD__) && !defined(OPENSSL_SYS_VXWORKS) /* FIXME */
116
#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(OPENSSL_SYS_MPE) && !defined(__NetBSD__) && !defined(OPENSSL_SYS_VXWORKS) /* FIXME */
117 117
# define TIMEB
118 118
#endif
119 119

  
crypto/openssl/crypto/des/des_old.h
178 178
#if 0
179 179
#define des_crypt(b,s)\
180 180
	DES_crypt((b),(s))
181
#if !defined(PERL5) && !defined(__FreeBSD__) && !defined(NeXT) && !defined(__OpenBSD__)
181
#if !defined(PERL5) && !defined(__FreeBSD__) && !defined(NeXT) && !defined(__OpenBSD__) && !defined(__DragonFly__)
182 182
#define crypt(b,s)\
183 183
	DES_crypt((b),(s))
184 184
#endif
crypto/openssl/crypto/engine/eng_all.c
104 104
#endif
105 105
#endif
106 106
#ifndef OPENSSL_NO_HW
107
#if defined(__OpenBSD__) || defined(__FreeBSD__)
107
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
108 108
	ENGINE_load_cryptodev();
109 109
#endif
110 110
#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
......
113 113
#endif
114 114
	}
115 115

  
116
#if defined(__OpenBSD__) || defined(__FreeBSD__)
116
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
117 117
void ENGINE_setup_bsd_cryptodev(void) {
118 118
	static int bsd_cryptodev_default_loaded = 0;
119 119
	if (!bsd_cryptodev_default_loaded) {
crypto/openssl/crypto/engine/eng_cryptodev.c
32 32
#include <openssl/bn.h>
33 33

  
34 34
#if (defined(__unix__) || defined(unix)) && !defined(USG) && \
35
	(defined(OpenBSD) || defined(__FreeBSD_version))
35
	(defined(OpenBSD) || defined(__FreeBSD_version) || defined(__DragonFly__))
36 36
#include <sys/param.h>
37
# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
37
# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) || (__DragonFly_version >= 200500)
38 38
#  define HAVE_CRYPTODEV
39 39
# endif
40 40
# if (OpenBSD >= 200110)
crypto/openssl/crypto/engine/engine.h
703 703
 * values. */
704 704
void *ENGINE_get_static_state(void);
705 705

  
706
#if defined(__OpenBSD__) || defined(__FreeBSD__)
706
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined (__DragonFly__)
707 707
void ENGINE_setup_bsd_cryptodev(void);
708 708
#endif
709 709

  
crypto/openssl/crypto/evp/c_all.c
83 83
	OpenSSL_add_all_ciphers();
84 84
	OpenSSL_add_all_digests();
85 85
#ifndef OPENSSL_NO_ENGINE
86
# if defined(__OpenBSD__) || defined(__FreeBSD__)
86
# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
87 87
	ENGINE_setup_bsd_cryptodev();
88 88
# endif
89 89
#endif
crypto/openssl/crypto/uid.c
56 56
#include <openssl/crypto.h>
57 57
#include <openssl/opensslconf.h>
58 58

  
59
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2)
59
#if defined(__OpenBSD__) || defined(__DragonFly__) || (defined(__FreeBSD__) && __FreeBSD__ > 2)
60 60

  
61 61
#include OPENSSL_UNISTD
62 62