cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL/TLS support using Windows SSPI Schannel API

From: Marc Hörsken <info_at_marc-hoersken.de>
Date: Tue, 10 Apr 2012 08:30:11 +0200

2012/4/10 Gisle Vanem <gvanem_at_broadpark.no>

> "Marc Hörsken" <info_at_marc-hoersken.de> wrote:
>
> I thought it was working for you, sorry for the misunderstanding.
>>
>
> I though so too, but was mistaken.

Ah, okay.

> So, how exactly are you trying to build it? If you still want to do it.
>>
>
> I got the 'mback2k-curl-curl-7_25_0-67-**g306621b.zip' from git here:
> https://github.com/mback2k/**curl/zipball/schannel<https://github.com/mback2k/curl/zipball/schannel>
>
> This I compiled after I figured I had to add '-DUSE_SSL' too. See in
> sslgen.c and curl_schannel.h;
> #define curlssl_version Curl_schannel_version
>
> Unless '-DUSE_SSL' is defined, I wasn't getting any "Schannel/.."
> from curl -V and other code was missing too off-course. Rather messy
> code this is. But all seems to work now:
>

Sorry, I totally forgot about that flag.
Can you tell me which buildscript or full cmdline you are using to build it
now?
Are you using the autotools scripts?

>
> G:\MingW32\src\inet\curl\**mback2k\src>curl.exe -v https://google.com
> ..
> * Connected to google.com (74.125.226.194) port 443 (#0)
> * schannel: Connecting to google.com:443 (step 1/3)
> * schannel: checking server certificate and revocation
> * schannel: sending initial handshake data: 81 ...
> * schannel: sent initial handshake data: 81
> * schannel: Connecting to google.com:443 (step 2/3)
> * schannel: failed to receive handshake, waiting for more: -1
> * schannel: Connecting to google.com:443 (step 2/3)
> * schannel: encrypted data buffer 2297/4096
> * schannel: sending next handshake data: 186 ...
> * schannel: encrypted data length: 0
> * schannel: Connecting to google.com:443 (step 2/3)
> * schannel: encrypted data buffer 47/4096
> * schannel: encrypted data length: 0
> * schannel: handshake complete
>
>> GET / HTTP/1.1
>> User-Agent: curl/7.25.1-DEV (i386-pc-win32) libcurl/7.25.1-DEV Schannel/
>> 1.0.0.0 zlib/1.2.5
>> Host: google.com
>>
> ...
>
> <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=**
> utf-8">
> <TITLE>301 Moved</TITLE></HEAD><BODY>
> <H1>301 Moved</H1>
> The document has moved
> here.
> </BODY></HTML>
> * Connection #0 to host google.com left intact
> * Closing connection #0
> * schannel: Closing connection with google.com:443
> * schannel: Closing connection with google.com:443
> * schannel: Closing connection with google.com:443
>
> So all in kudos to you :)

Nice, thanks. Great to see it working for you!

Best regards,
Marc

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-10