summaryrefslogtreecommitdiff
path: root/alpine/imap.h
blob: e2bc54687f44cb6f37d1019721be75e47d514981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * $Id: imap.h 1074 2008-06-04 00:08:43Z hubert@u.washington.edu $
 *
 * ========================================================================
 * Copyright 2006-2007 University of Washington
 * Copyright 2013-2020 Eduardo Chappa
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * ========================================================================
 */

#ifndef PINE_IMAP_INCLUDED
#define PINE_IMAP_INCLUDED


#include "../pith/imap.h"


/* exported prototypes */
void pine_parse_quota (MAILSTREAM *, unsigned char *, QUOTALIST *);
QUOTALIST *pine_quotalist_copy (QUOTALIST  *);
void   *pine_block_notify(int, void *);
long    pine_tcptimeout(long, long, char *);
long    pine_sslcertquery(char *, char *, char *);
char   *pine_newsrcquery(MAILSTREAM *, char *, char *);
int     url_local_certdetails(char *);
void    pine_sslfailure(char *, char *, unsigned long);
void	mm_expunged_current(long unsigned int);
char   *oauth2_get_access_code(char *, OAUTH2_S *, int *);

#ifdef	LOCAL_PASSWD_CACHE
int     get_passfile_passwd(char *, char **, char *, STRLIST_S *, int);
int     get_passfile_passwd_auth(char *, char **, char *, STRLIST_S *, int, char *);
int     is_using_passfile(void);
void    set_passfile_passwd(char *, char *, char *, STRLIST_S *, int, int);
void    set_passfile_passwd_auth(char *, char *, char *, STRLIST_S *, int, int, char *);
char   *get_passfile_user(char *, STRLIST_S *);
void	free_passfile_cache(void);
#endif	/* LOCAL_PASSWD_CACHE */

#if	(WINCRED > 0)
void    erase_windows_credentials(void);
#endif

#ifdef	APPLEKEYCHAIN
void    macos_erase_keychain(void);
#endif


#endif /* PINE_IMAP_INCLUDED */