* Clear out some gcc warnings, and code improvement. Work in progress.
[alpine.git] / alpine / imap.h
blob9104fffffecf96f60bcb33d128d56b90090a68e1
1 /*
2 * $Id: imap.h 1074 2008-06-04 00:08:43Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006-2007 University of Washington
6 * Copyright 2013-2021 Eduardo Chappa
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PINE_IMAP_INCLUDED
18 #define PINE_IMAP_INCLUDED
21 #include "../pith/imap.h"
24 /* exported prototypes */
25 void pine_parse_quota (MAILSTREAM *, unsigned char *, QUOTALIST *);
26 QUOTALIST *pine_quotalist_copy (QUOTALIST *);
27 void *pine_block_notify(int, void *);
28 long pine_tcptimeout(long, long, char *);
29 long pine_sslcertquery(char *, char *, char *);
30 char *pine_newsrcquery(MAILSTREAM *, char *, char *);
31 int url_local_certdetails(char *);
32 void pine_sslfailure(char *, char *, unsigned long);
33 void mm_expunged_current(long unsigned int);
34 IDLIST *set_alpine_id(char *, char *);
35 char *oauth2_get_access_code(unsigned char *, char *, OAUTH2_S *, int *);
36 void oauth2_set_device_info(OAUTH2_S *, char *);
37 int oauth2_elapsed_done(void *);
38 UCS oauth2device_decode_reply(void *, void *);
40 #ifdef LOCAL_PASSWD_CACHE
41 int get_passfile_passwd(char *, char **, char *, STRLIST_S *, int);
42 int get_passfile_passwd_auth(char *, char **, char *, STRLIST_S *, int, char *);
43 int is_using_passfile(void);
44 void set_passfile_passwd(char *, char *, char *, STRLIST_S *, int, int);
45 void set_passfile_passwd_auth(char *, char *, char *, STRLIST_S *, int, int, char *);
46 char *get_passfile_user(char *, STRLIST_S *);
47 void free_passfile_cache(void);
48 #endif /* LOCAL_PASSWD_CACHE */
50 #if (WINCRED > 0)
51 void erase_windows_credentials(void);
52 #endif
54 #ifdef APPLEKEYCHAIN
55 void macos_erase_keychain(void);
56 #endif
59 #endif /* PINE_IMAP_INCLUDED */