]> arthur.barton.de Git - ngircd-alex.git/commit
conn-ssl.c: work around gnutls API problems on 64 bit platforms
authorFlorian Westphal <fw@strlen.de>
Wed, 29 Oct 2008 22:51:39 +0000 (23:51 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 29 Oct 2008 22:51:39 +0000 (23:51 +0100)
commit125c05fba0315da143c3431a41bd930fcb992501
treeda710ad800de989d5db396a1bca0ef3dfb4db782
parentfb19b05e1e3d638062dcfc4c263b02e7429c4d20
conn-ssl.c: work around gnutls API problems on 64 bit platforms

Alexander Barton reported a compiler warning on 64-bit platforms:
cc1: warnings being treated as errors
conn-ssl.c: In function 'ConnSSL_Init_SSL':
conn-ssl.c:403: error: cast to pointer from integer of
different size

Unfortunately, I couldn't find a real solution; the GNUTLS
API expects 'gnutls_transport_ptr_t' (which is void*),
but the default push/pull functions (send/recv) expect an int.

The only alternative solution is to pass in an address to the
file descriptor, then add send/recv wrappers that expect a pointer.

What a mess[tm].
src/ngircd/conn-ssl.c