On Thu, 22 Dec 2011 18:29:51 +0100 BohwaZ wrote: > Le Thu, 22 Dec 2011 15:22:50 +0000 (UTC), urban <[email protected]> a > écrit : > > > Hi, > > > > when compiling [feed6232af], gcc 4.2.2 gives this error: > > > > bld/http_ssl.o: In function `ssl_open': > > /mnt/sda6/Fossil-feed6232af207151/./src/http_ssl.c:215: undefined > > reference to `SSL_set_tlsext_host_name' > > Seems that your OpenSSL lib is too old. > > Maybe we should put that in the source code: > > #if (SSLEAY_VERSION_NUMBER >= 0x00908070)&& !defined > #(OPENSSL_NO_TLSEXT) > SSL_set_tlsext_host_name(handle,hostname); > #endif > > (took from the W3M source code) > > But also make a compile warning if it's not available, and display a > warning when trying to make a SSL connection without tlsext_host_name > as this connection might fail because of this.
I don't like the run-time warning idea, but for the compiler warning, is this done like this? #if (SSLEAY_VERSION_NUMBER >= 0x00908070)&& !defined(OPENSSL_NO_TLSEXT) SSL_set_tlsext_host_name(handle,hostname); #else #warning OpenSSL version too old, compiling without SNI support. #endif Does this work with every compiler? -- Dmitry Chestnykh http://www.codingrobots.com _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

