bump ath9k package version number, too
[openwrt.git] / package / openssl / patches / 210-use_cryptodev_by_default_if_available.patch
1 --- openssl-0.9.8h/ssl/ssl_algs.c 2007-04-24 01:50:21.000000000 +0200
2 +++ openssl-0.9.8h-ocf/ssl/ssl_algs.c 2008-07-12 17:34:27.000000000 +0200
3 @@ -57,6 +57,9 @@
4 */
5
6 #include <stdio.h>
7 +#ifndef OPENSSL_NO_ENGINE
8 +#include <openssl/engine.h>
9 +#endif
10 #include <openssl/objects.h>
11 #include <openssl/lhash.h>
12 #include "ssl_locl.h"
13 @@ -127,6 +130,15 @@
14 #endif
15 /* initialize cipher/digest methods table */
16 ssl_load_ciphers();
17 +
18 +#ifndef OPENSSL_NO_ENGINE
19 + /* Initialize available hardware crypto engines */
20 + ENGINE_load_builtin_engines();
21 + ENGINE_register_all_complete();
22 + /* ...and set cryptodev to be the default. */
23 + ENGINE_set_default_ciphers(ENGINE_by_id("cryptodev"));
24 +#endif
25 +
26 return(1);
27 }
28
This page took 0.042737 seconds and 5 git commands to generate.