Commit 9a508f59 9a508f598cf99f98710590da1ac7cbbe940c6c6b by Sergey Poznyakoff

(imap4d_auth_capability): New function.

1 parent f318f2a4
...@@ -30,6 +30,14 @@ struct imap_auth { ...@@ -30,6 +30,14 @@ struct imap_auth {
30 }; 30 };
31 31
32 int 32 int
33 imap4d_auth_capability ()
34 {
35 struct imap_auth *ap;
36 for (ap = imap_auth_tab; ap->name; ap++)
37 util_send(" AUTH=%s", ap->name);
38 }
39
40 int
33 imap4d_authenticate (struct imap4d_command *command, char *arg) 41 imap4d_authenticate (struct imap4d_command *command, char *arg)
34 { 42 {
35 char *sp = NULL; 43 char *sp = NULL;
......
...@@ -156,6 +156,7 @@ extern char *strtok_r __P((char *s, const char *delim, char **save_ptr)); ...@@ -156,6 +156,7 @@ extern char *strtok_r __P((char *s, const char *delim, char **save_ptr));
156 extern int imap4d_append __P ((struct imap4d_command *, char *)); 156 extern int imap4d_append __P ((struct imap4d_command *, char *));
157 extern int imap4d_append0 __P((mailbox_t mbox, int flags, char *text)); 157 extern int imap4d_append0 __P((mailbox_t mbox, int flags, char *text));
158 extern int imap4d_authenticate __P ((struct imap4d_command *, char *)); 158 extern int imap4d_authenticate __P ((struct imap4d_command *, char *));
159 extern int imap4d_auth_capability __P((void));
159 extern int imap4d_capability __P ((struct imap4d_command *, char *)); 160 extern int imap4d_capability __P ((struct imap4d_command *, char *));
160 extern int imap4d_check __P ((struct imap4d_command *, char *)); 161 extern int imap4d_check __P ((struct imap4d_command *, char *));
161 extern int imap4d_close __P ((struct imap4d_command *, char *)); 162 extern int imap4d_close __P ((struct imap4d_command *, char *));
......