gnutls: only translate winsock errors for old versions
authorMark Brand <mabrand@mabrand.nl>
Tue, 22 Nov 2011 21:48:15 +0000 (22:48 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Nov 2011 21:38:11 +0000 (22:38 +0100)
commit28bac99674f199898f3e803fcfc4167a56a4c058
treea18da83ce9aa3656e40748b20a768d75782af911
parent7248439fece7d0f32cc3d52c253b3960a66ad2b3
gnutls: only translate winsock errors for old versions

Bugfix: https handshake fails using gnutls 3 on windows
http://sourceforge.net/tracker/index.php?func=detail&aid=3441084&group_id=976&atid=100976

New gnutls versions have an error handler that knows about Winsock
errors, which is why gnutls_transport_set_global_errno() was deprecated
and then removed.

This is a correction of commit f5bb370 (blame me) which meant to
reimplement gnutls_transport_set_global_errno(), which is not necessary.
lib/gtls.c