Re: Enabled multiple SSL backends

2017-09-08 Thread Johannes Schindelin
Hi Kamil, On Sat, 9 Sep 2017, Johannes Schindelin wrote: > Actually, there is a remaining problem with that PR (which was sadly > closed, but I think we need to get this problem fixed ASAP): when > compiling cURL with NSS and, say, Secure Channel support, and Secure > Channel is selected at

Re: Enabled multiple SSL backends

2017-09-08 Thread Johannes Schindelin
Hi Kamil, On Sat, 9 Sep 2017, Johannes Schindelin wrote: > On Wed, 6 Sep 2017, Kamil Dudka wrote: > > > On Thursday, August 31, 2017 9:36:10 AM CEST Kamil Dudka via > > curl-library wrote: > > > On Wednesday, August 30, 2017 10:40:14 PM CEST Johannes Schindelin wrote: > > > > > > > > On Wed,

Re: Enabled multiple SSL backends

2017-09-08 Thread Johannes Schindelin
Hi Kamil, On Wed, 6 Sep 2017, Kamil Dudka wrote: > On Thursday, August 31, 2017 9:36:10 AM CEST Kamil Dudka via > curl-library wrote: > > On Wednesday, August 30, 2017 10:40:14 PM CEST Johannes Schindelin wrote: > > > > > > On Wed, 30 Aug 2017, Kamil Dudka wrote: > > > > On Wednesday, August

Re: Enabled multiple SSL backends

2017-09-06 Thread Kamil Dudka via curl-library
On Thursday, August 31, 2017 9:36:10 AM CEST Kamil Dudka via curl-library wrote: > On Wednesday, August 30, 2017 10:40:14 PM CEST Johannes Schindelin wrote: > > Hi, > > > > On Wed, 30 Aug 2017, Kamil Dudka wrote: > > > On Wednesday, August 30, 2017 10:14:06 AM CEST Daniel Stenberg wrote: > > > >

Re: Enabled multiple SSL backends

2017-08-31 Thread Daniel Stenberg
On Wed, 30 Aug 2017, Richard Gray wrote: I see I failed to notice that curl_ssl_backend must be a typedef of a struct or something when I was looking at the example. Perhaps the manpage should describe the curl_ssl_backend struct as containing .id and .name fields? Yes, that's a good idea.

Re: Enabled multiple SSL backends

2017-08-31 Thread Kamil Dudka via curl-library
On Wednesday, August 30, 2017 10:40:14 PM CEST Johannes Schindelin wrote: > Hi, > > On Wed, 30 Aug 2017, Kamil Dudka wrote: > > On Wednesday, August 30, 2017 10:14:06 AM CEST Daniel Stenberg wrote: > > > On Wed, 30 Aug 2017, Kamil Dudka wrote: > > > > This is caused by using NSS for the crypto

Re: Enabled multiple SSL backends

2017-08-30 Thread Johannes Schindelin
Hi, On Wed, 30 Aug 2017, Kamil Dudka wrote: > On Wednesday, August 30, 2017 10:14:06 AM CEST Daniel Stenberg wrote: > > On Wed, 30 Aug 2017, Kamil Dudka wrote: > > > > > This is caused by using NSS for the crypto operations despite only > > > OpenSSL was initialized. Should the switch work for

Re: Enabled multiple SSL backends

2017-08-30 Thread Richard Gray
Daniel Stenberg wrote: On Mon, 28 Aug 2017, Rich Gray wrote: I am curious about the manpage statement "This function can only be called once". Shouldn't this be something more like "This function can only be used to select an SSL library once." Correct. I'll edit that paragraph. Is the

Re: Enabled multiple SSL backends

2017-08-30 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: On Tue, 29 Aug 2017, Gisle Vanem via curl-library wrote: works perfectly. But with a "set CURL_SSL_BACKEND=cyassl" it does not:  curl: (35) SSL_connect failed with error -313: revcd alert fatal error I'm looking into it here. Okay. If you get stuck and need some

Re: Enabled multiple SSL backends

2017-08-30 Thread Daniel Stenberg
On Tue, 29 Aug 2017, Dan Fandrich wrote: My PolarSSL autobuilds are now failing with a link error: Yeps, I can reproduce. Proposed fix: https://github.com/curl/curl/pull/1843 -- / daniel.haxx.se --- Unsubscribe:

Re: Enabled multiple SSL backends

2017-08-30 Thread Kamil Dudka via curl-library
On Wednesday, August 30, 2017 10:14:06 AM CEST Daniel Stenberg wrote: > On Wed, 30 Aug 2017, Kamil Dudka wrote: > > Should the curl_global_sslset() function really be declared in > > ? I though that the include file was used solely for the > > libcurl multi API... > > Yes you're of course right,

Re: Enabled multiple SSL backends

2017-08-30 Thread Daniel Stenberg
On Wed, 30 Aug 2017, Kamil Dudka wrote: Should the curl_global_sslset() function really be declared in ? I though that the include file was used solely for the libcurl multi API... Yes you're of course right, but.. Some platforms build the list of public API calls from our public header

Re: Enabled multiple SSL backends

2017-08-30 Thread Kamil Dudka via curl-library
On Monday, August 28, 2017 11:22:51 PM CEST Daniel Stenberg wrote: > Hi friends! > > As of minutes ago, libcurl has the ability to change SSL backend dynamically > at run-time - if built with the support enabled. That means that the choice > does no longer only have to happen at build-time. > >

Re: Enabled multiple SSL backends

2017-08-30 Thread Daniel Stenberg
On Tue, 29 Aug 2017, Gisle Vanem via curl-library wrote: works perfectly. But with a "set CURL_SSL_BACKEND=cyassl" it does not: curl: (35) SSL_connect failed with error -313: revcd alert fatal error I'm looking into it here. Okay. If you get stuck and need some assistance, I think you'll

Re: Enabled multiple SSL backends

2017-08-30 Thread Daniel Stenberg
On Mon, 28 Aug 2017, Rich Gray wrote: I am curious about the manpage statement "This function can only be called once". Shouldn't this be something more like "This function can only be used to select an SSL library once." Correct. I'll edit that paragraph. Is the avail list a list of all

Re: Enabled multiple SSL backends

2017-08-29 Thread Dan Fandrich
On Mon, Aug 28, 2017 at 11:22:51PM +0200, Daniel Stenberg wrote: > This is of course a rather huge change to a lot of TLS code so of course > there's a risk that some things broke in this process even if Johannes has > done a wonderful work on this and I've done my best in reviewing it. Please >

Re: Enabled multiple SSL backends

2017-08-29 Thread Gisle Vanem via curl-library
Daniel Stenberg wrote: To build with multiple backends, just specify all you want on the configure line. Ie "--with-ssl --with-gnutls" builds with both OpenSSL *and* GnuTLS. Tell configure which backend to use by default when built to use several, with --with-default-ssl-backend. I tried

Re: Enabled multiple SSL backends

2017-08-28 Thread Rich Gray
Daniel Stenberg wrote: Hi friends! As of minutes ago, libcurl has the ability to change SSL backend dynamically at run-time - if built with the support enabled. That means that the choice does no longer only have to happen at build-time. curl_global_sslset() is the new function for selecting

Enabled multiple SSL backends

2017-08-28 Thread Daniel Stenberg
Hi friends! As of minutes ago, libcurl has the ability to change SSL backend dynamically at run-time - if built with the support enabled. That means that the choice does no longer only have to happen at build-time. curl_global_sslset() is the new function for selecting which SSL backend to