cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL/TLS support using Windows SSPI Schannel API

From: Guenter <lists_at_gknw.net>
Date: Sat, 14 Apr 2012 22:43:58 +0200

Hi Marc,
Am 14.04.2012 15:08, schrieb Marc Hoersken:
> Yes, that's a good idea. I added a new function called
> Curl_sspi_version to curl_sspi.[ch] to the product version of the
> loaded DLL. This is based upon version.lib, which is available since
> Windows 2000 Professional or Windows 2000 Server.
>
> Inside curl_schannel.c the string is appended to "Schannel-", so that
> a complete version string looks like this:
>
> D:\Dev\curl>src\curl -V
> curl 7.25.1-DEV (i386-pc-win32) libcurl/7.25.1-DEV Schannel-SSPI/6.1.7601.17725
> Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3
> pop3s rtsp smtp smtps telnet tftp
> Features: AsynchDNS GSS-Negotiate Largefile NTLM SSL SSPI
>
> I have attached two patches, schannel_2012-04-14_1.patch includes
> everything and schannel_2012-04-14_1_diff.patch only the changes since
> my last patch.
> Git repository is also up-to-date:
> https://github.com/mback2k/curl/commit/d38f3da4822c8585cfaa865a4db8b9308316db95
please give mingw-gcc another try:
gcc -I. -I../include -g -O2 -Wall -fno-strict-aliasing
-DBUILDING_LIBCURL -DCURL_WANTS_CA_BUNDLE_ENV -DUSE_SSL -DUSE_SCHANNEL
-DUSE_WINDOWS_SSPI -c curl_sspi.c
curl_sspi.c: In function 'Curl_sspi_version':
curl_sspi.c:146:15: warning: passing argument 3 of 'VerQueryValueA' from
incompatible pointer type [enabled by default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winver.h:110:13:
note: expected 'void **' but argument is of type 'struct
VS_FIXEDFILEINFO **'
curl_sspi.c:146:15: warning: passing argument 4 of 'VerQueryValueA' from
incompatible pointer type [enabled by default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/winver.h:110:13:
note: expected 'PUINT' but argument is of type 'DWORD *'

Gün.

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