1 diff -ur openssl-0.9.8k/crypto/engine/eng_all.c openssl-0.9.8k.new/crypto/engine/eng_all.c
2 --- openssl-0.9.8k/crypto/engine/eng_all.c 2008-06-04 21:01:39.000000000 +0300
3 +++ openssl-0.9.8k.new/crypto/engine/eng_all.c 2009-11-24 13:41:49.000000000 +0200
8 -#if defined(__OpenBSD__) || defined(__FreeBSD__)
9 +# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) || defined(__linux__)
10 ENGINE_load_cryptodev();
13 #if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
19 -#if defined(__OpenBSD__) || defined(__FreeBSD__)
20 void ENGINE_setup_bsd_cryptodev(void) {
21 static int bsd_cryptodev_default_loaded = 0;
22 if (!bsd_cryptodev_default_loaded) {
25 bsd_cryptodev_default_loaded=1;
28 diff -ur openssl-0.9.8k/crypto/engine/eng_cryptodev.c openssl-0.9.8k.new/crypto/engine/eng_cryptodev.c
29 --- openssl-0.9.8k/crypto/engine/eng_cryptodev.c 2004-06-15 14:45:42.000000000 +0300
30 +++ openssl-0.9.8k.new/crypto/engine/eng_cryptodev.c 2009-11-24 13:45:31.000000000 +0200
32 #if (defined(__unix__) || defined(unix)) && !defined(USG) && \
33 (defined(OpenBSD) || defined(__FreeBSD_version))
34 #include <sys/param.h>
35 -# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
36 -# define HAVE_CRYPTODEV
38 # if (OpenBSD >= 200110)
39 # define HAVE_SYSLOG_R
43 +#if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) || defined(__linux__)
44 +# define HAVE_CRYPTODEV
47 #ifndef HAVE_CRYPTODEV
50 diff -ur openssl-0.9.8k/crypto/engine/engine.h openssl-0.9.8k.new/crypto/engine/engine.h
51 --- openssl-0.9.8k/crypto/engine/engine.h 2008-06-04 21:01:40.000000000 +0300
52 +++ openssl-0.9.8k.new/crypto/engine/engine.h 2009-11-24 13:41:49.000000000 +0200
55 void *ENGINE_get_static_state(void);
57 -#if defined(__OpenBSD__) || defined(__FreeBSD__)
58 void ENGINE_setup_bsd_cryptodev(void);
61 /* BEGIN ERROR CODES */
62 /* The following lines are auto generated by the script mkerr.pl. Any changes
63 diff -ur openssl-0.9.8k/crypto/evp/c_all.c openssl-0.9.8k.new/crypto/evp/c_all.c
64 --- openssl-0.9.8k/crypto/evp/c_all.c 2004-08-29 19:36:04.000000000 +0300
65 +++ openssl-0.9.8k.new/crypto/evp/c_all.c 2009-11-24 13:41:49.000000000 +0200
67 OpenSSL_add_all_ciphers();
68 OpenSSL_add_all_digests();
69 #ifndef OPENSSL_NO_ENGINE
70 -# if defined(__OpenBSD__) || defined(__FreeBSD__)
71 ENGINE_setup_bsd_cryptodev();