]> granicus.if.org Git - neomutt/commitdiff
IMAP auth functions are stored by pointer cannot be static
authorPietro Cerutti <gahr@gahr.ch>
Mon, 13 Mar 2017 11:41:30 +0000 (11:41 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 16 Mar 2017 23:39:54 +0000 (23:39 +0000)
See the imap_authenticators array in imap/auth.c.  This is exposed by
building without SASL.

imap/auth_anon.c
imap/auth_cram.c

index 327b35a43202ccfd0e8b664c74fbdc25320632b3..bca5895bbbefb0cb0ca2c8062566743aec839e9e 100644 (file)
@@ -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;
 
index 033fea0248df1e3863cb95cf54a3f2f49c1ee947..3e7cdf1904db99b1559c904bf9d03dd86858ab8d 100644 (file)
@@ -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];