From: Pietro Cerutti Date: Mon, 13 Mar 2017 11:41:30 +0000 (+0000) Subject: IMAP auth functions are stored by pointer cannot be static X-Git-Tag: neomutt-20170414~31^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39efe7bedf9b94e6480ae938473a714de042b904;p=neomutt IMAP auth functions are stored by pointer cannot be static See the imap_authenticators array in imap/auth.c. This is exposed by building without SASL. --- diff --git a/imap/auth_anon.c b/imap/auth_anon.c index 327b35a43..bca5895bb 100644 --- a/imap/auth_anon.c +++ b/imap/auth_anon.c @@ -25,7 +25,7 @@ #include "auth.h" /* this is basically a stripped-down version of the cram-md5 method. */ -static imap_auth_res_t imap_auth_anon (IMAP_DATA* idata, const char* method) +imap_auth_res_t imap_auth_anon (IMAP_DATA* idata, const char* method) { int rc; diff --git a/imap/auth_cram.c b/imap/auth_cram.c index 033fea024..3e7cdf190 100644 --- a/imap/auth_cram.c +++ b/imap/auth_cram.c @@ -33,7 +33,7 @@ static void hmac_md5 (const char* password, char* challenge, unsigned char* response); /* imap_auth_cram_md5: AUTH=CRAM-MD5 support. */ -static imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata, const char* method) +imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata, const char* method) { char ibuf[LONG_STRING*2], obuf[LONG_STRING]; unsigned char hmac_response[MD5_DIGEST_LEN];