cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Undefined reference to sslv2_client_method as of curl 7.23.1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 6 Dec 2011 10:20:19 +0100 (CET)

On Tue, 6 Dec 2011, Christian Ruiz wrote:

> I'm running Ubuntu 11.10, 32-bit, with open ssl 1.0.0e and curl source
> 7.23.1
>
> I compiled with the --with-ssl flag and I got:
>
> "libcurl.so: undefined reference to `sslv2_client_method"
>
> I thought this was fixed in github commit
> c66b0b32fba175d5f096c944d8ec8f9f06299f4a
>
> What is going on? Could there be a mistake in the patch?

The patch simply makes uses of the fact that (some) OpenSSL version uses a
define to mark its non-support of SSLv2. Presumably the OpenSSL headers you
have installed don't have that define present and then libcurl doesn't spot
this.

I don't know why you would though, or what the exact OpenSSL policy is in
regards to SSLv2 and the OPENSSL_NO_SSL2 define.

I think we should add a check to configure that verifies if
sslv2_client_method is present when OpenSSL has been detected, just to make
really sure that it works and thus not rely only on the define.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-06