[pkg-boost-devel] Bug#622070: Bug#622070: witty: FTBFS: openssl_context_service.hpp:73:28: error: '::SSLv2_method' has not been declared

Kurt Roeckx kurt at roeckx.be
Mon Apr 11 06:50:41 UTC 2011


On Sun, Apr 10, 2011 at 08:25:29PM -0500, Steve M. Robbins wrote:
> On Sun, Apr 10, 2011 at 04:29:33PM +0200, Kurt Roeckx wrote:
> > reassign 622070 libboost1.46-dev
> > affects 622070 + src:witty
> > thanks
> > 
> > On Sat, Apr 09, 2011 at 01:56:28PM +0200, Lucas Nussbaum wrote:
> > > > In file included from /usr/include/boost/asio/ssl/context_service.hpp:30:0,
> > > >                  from /usr/include/boost/asio/ssl/context.hpp:22,
> > > >                  from /usr/include/boost/asio/ssl.hpp:19,
> > > >                  from /build/user-witty_3.1.8-2-amd64-wHJ4Kv/witty-3.1.8/src/http/Server.h:22,
> > > >                  from /build/user-witty_3.1.8-2-amd64-wHJ4Kv/witty-3.1.8/src/http/HTTPStream.C:12:
> > > > /usr/include/boost/asio/ssl/detail/openssl_context_service.hpp: In member function 'void boost::asio::ssl::detail::openssl_context_service::create(SSL_CTX*&, boost::asio::ssl::context_base::method)':
> > > > /usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:73:28: error: '::SSLv2_method' has not been declared
> > > > /usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:76:28: error: '::SSLv2_client_method' has not been declared
> > > > /usr/include/boost/asio/ssl/detail/openssl_context_service.hpp:79:28: error: '::SSLv2_server_method' has not been declared
> > > > make[3]: *** [src/http/CMakeFiles/wthttp.dir/HTTPStream.o] Error 1
> > 
> > SSLv2 is now disabled in openssl and so the SSLv2_* methods have
> > been removed.  This can be detected by OPENSSL_NO_SSL2, so you
> > could place all the related section in an #ifndef OPENSSL_NO_SSL2
> 
> What are the equivalent calls to the three removed ones?
> Can you suggest a patch to boost that replaces this code with equivalent functionality?

Please see the manpage of SSL_CTX_new() of what those methods
mean.  As far as I can see this is just a wrapper and you don't
need to replace the code with something else, just disable the
SSLv2 functionality.

Witty for instance uses an sslv23_* function, but is having a
problem because the function also supports sslv2_* functions.

I hope this makes it more clear.


Kurt






More information about the pkg-boost-devel mailing list