Ticket #6432: boost_patch.txt

File boost_patch.txt, 791 bytes (added by anonymous, 11 years ago)
Line 
1Index: boost/asio/ssl/detail/openssl_types.hpp
2===================================================================
3--- boost/asio/ssl/detail/openssl_types.hpp  (revision 000)
4+++ boost/asio/ssl/detail/openssl_types.hpp  (working copy)
5@@ -18,7 +18,16 @@
6 #include <boost/asio/detail/config.hpp>
7 #include <openssl/conf.h>
8 #include <openssl/ssl.h>
9+// Special hack for boost with openssl on Android
10+// Android uses no ssl engine, and boost asio need
11+// to ignore such include. Asio code later call
12+// ENGINE_cleanup, therefore a default implementation
13+// is provided here to avoid further patching.
14+#ifdef OPENSSL_NO_ENGINE
15+static void ENGINE_cleanup(void) {};
16+#else
17 #include <openssl/engine.h>
18+#endif
19 #include <openssl/err.h>
20 #include <boost/asio/detail/socket_types.hpp>