curl/lib/vtls
Johannes Schindelin c0cdc68c7e gtls: fix build when sizeof(long) < sizeof(void *)
- Change gnutls pointer/int macros to pointer/curl_socket_t.
  Prior to this change they used long type as well.

The size of the `long` data type can be shorter than that of pointer
types. This is the case most notably on Windows.

If C99 were acceptable, we could simply use `intptr_t` here. But we
want to retain C89 compatibility.

Simply use the trick of performing pointer arithmetic with the NULL
pointer: to convert an integer `i` to a pointer, simply take the
address of the `i`th element of a hypothetical character array
starting at address NULL. To convert back, simply cast the pointer
difference.

Thanks to Jay Satiro for the initial modification to use curl_socket_t
instead of int/long.

Closes #1617

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-07-03 15:45:25 +02:00
..
axtls.c TLS: Fix switching off SSL session id when client cert is used 2017-04-18 07:56:34 +02:00
axtls.h rand: make it work without TLS backing 2017-01-12 17:44:21 +01:00
cyassl.c cyassl: define build macros before including ssl.h 2017-06-03 00:39:46 +02:00
cyassl.h cyassl: fix typo 2017-02-21 22:24:39 -05:00
darwinssl.c darwinssl: Fix exception when processing a client-side certificate file 2017-05-16 19:21:12 -05:00
darwinssl.h SecureTransport/DarwinSSL: Implement public key pinning 2017-05-15 22:54:33 +02:00
gskit.c spelling fixes 2017-03-26 23:56:23 +02:00
gskit.h curl_version_info: add CURL_VERSION_HTTPS_PROXY 2016-11-26 17:28:53 +01:00
gtls.c gtls: fix build when sizeof(long) < sizeof(void *) 2017-07-03 15:45:25 +02:00
gtls.h rand: make it work without TLS backing 2017-01-12 17:44:21 +01:00
mbedtls.c mbedtls: make TU-local variable static 2017-06-02 22:05:01 +02:00
mbedtls.h mbedtls: add support for CURLOPT_SSL_CTX_FUNCTION 2017-03-21 23:51:44 -04:00
nss.c HTTPS-Proxy: don't offer h2 for https proxy connections 2017-06-16 12:16:41 +02:00
nssg.h rand: make it work without TLS backing 2017-01-12 17:44:21 +01:00
openssl.c openssl: improve fallback seed of PRNG with a time based hash 2017-06-30 09:21:03 +02:00
openssl.h rand: make it work without TLS backing 2017-01-12 17:44:21 +01:00
polarssl.c TLS: Fix switching off SSL session id when client cert is used 2017-04-18 07:56:34 +02:00
polarssl.h polarssl: fix hangs 2017-01-28 19:47:08 +01:00
polarssl_threadlock.c Curl_polarsslthreadlock_thread_setup: clear array at init 2016-10-18 13:05:43 +02:00
polarssl_threadlock.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
schannel.c schannel: return a more specific error code for SEC_E_UNTRUSTED_ROOT 2017-05-04 18:19:33 +02:00
schannel.h rand: make it work without TLS backing 2017-01-12 17:44:21 +01:00
vtls.c TLS: Fix switching off SSL session id when client cert is used 2017-04-18 07:56:34 +02:00
vtls.h checksrc: code style: use 'char *name' style 2016-11-24 23:58:22 +01:00