cipher, hmac: retrieve and print info for each session
[cryptodev-linux.git] / extras / openssl-0.9.8k-cryptodev-linux.diff
blob0a43e635ae9c1e9e4107c2511dcf37aec03a8983
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
4 @@ -104,16 +104,15 @@
5 #endif
6 #endif
7 #ifndef OPENSSL_NO_HW
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();
11 -#endif
12 +# endif
13 #if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
14 ENGINE_load_capi();
15 #endif
16 #endif
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) {
23 @@ -122,4 +121,3 @@
25 bsd_cryptodev_default_loaded=1;
27 -#endif
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
31 @@ -34,14 +34,15 @@
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
37 -# endif
38 # if (OpenBSD >= 200110)
39 # define HAVE_SYSLOG_R
40 # endif
41 #endif
43 +#if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) || defined(__linux__)
44 +# define HAVE_CRYPTODEV
45 +#endif
47 #ifndef HAVE_CRYPTODEV
49 void
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
53 @@ -703,9 +703,7 @@
54 * values. */
55 void *ENGINE_get_static_state(void);
57 -#if defined(__OpenBSD__) || defined(__FreeBSD__)
58 void ENGINE_setup_bsd_cryptodev(void);
59 -#endif
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
66 @@ -83,8 +83,6 @@
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();
72 -# endif
73 #endif