]> granicus.if.org Git - mutt/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)
commit4b85683a57db2f32cb6bb67ed9e0ded5047e8933
tree0b4d95b875a3bfaed2dd6b6b9bbb1eaedbc45d4b
parent62cbd0144043f17c7c23a2dec37e155604ef0935
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