|
| <prev next> |
Re: Fixed a problem with openssl_init.hpp: msg#00000lib.boost.asio.user
Hi Scott, Scott <cheesy4poofs-j9pdmedNgrk@xxxxxxxxxxxxxxxx> wrote: > I recently had to rebuild the latest version of OpenSSL and I > built it for both debug and release builds on Windows MSVS > 7.1. However, on the debug version I kept getting an > assertion from the smart_ptr created on this line: > > static boost::shared_ptr<do_init> init(new do_init); > > The do_init() constructor wasn't working correctly. I still > don't know exactly what was going on, but I traced the problem > to the last statement in the constructor: > > ::OpenSSL_add_ssl_algorithms(); > > I commented this out and everything is working fine now. In > addition, I traced this to a #define that's basically > equivalent to ::SSL_library_init(). So, in essence, the > OpenSSL library was getting initialized twice, once at the > beginning of the constructor and again at the end. The 2nd > initialization was causing the problem. I just committed a change for this yesterday, in fact. See: http://sourceforge.net/mailarchive/forum.php?thread_id=30916646&forum_id=42787 and: http://boost.cvs.sourceforge.net/boost/boost/boost/asio/ssl/detail/openssl_init.hpp?r1=1.3&r2=1.4 Cheers, Chris ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Next by Date: | Re: undelivered handlers: 00000, Christopher Kohlhoff |
|---|---|
| Next by Thread: | Re: undelivered handlers: 00000, Christopher Kohlhoff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |