]> granicus.if.org Git - neomutt/commit
Clean up gnutls warnings.
authorKevin McCarthy <kevin@8t8.us>
Wed, 28 Jan 2015 00:15:31 +0000 (16:15 -0800)
committerKevin McCarthy <kevin@8t8.us>
Wed, 28 Jan 2015 00:15:31 +0000 (16:15 -0800)
commit014a6087fb5185da952165f14fb4015fbf2bd03e
tree0b4d95b875a3bfaed2dd6b6b9bbb1eaedbc45d4b
parent64e3796557cfe91873bc7953c48c1a3d96688f3d
Clean up gnutls warnings.

Most of the warning were caused by deprecated types:
  gnutls_certificate_credentials
  gnutls_certificate_status
  gnutls_datum
  gnutls_digest_algorithm
  gnutls_session
  gnutls_transport_ptr
  gnutls_x509_crt
Even though I believe the replacements have been around for a while, the
patch adds autoconf checks and fallback typedefs.

One warning was caused by casting an int to a pointer for the second
parameter to gnutls_transport_set_ptr().  Recent gnutls has a
replacement gnutls_transport_set_int() macro, but this macro simply
(eventually) casts the parameter using "(gnutls_transport_ptr_t)(long)".
So this patch just does the same.
configure.ac
mutt_ssl_gnutls.c