f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch#define IMAP_URLAUTH_SOCKET_NAME "imap-urlauth"
f1edf7f20661ef9627acbf4054acddcba4d2eb3fStephan Bosch /* the user who is requesting access to URLAUTHs */
f1edf7f20661ef9627acbf4054acddcba4d2eb3fStephan Bosch /* ... is using this service (i.e. imap or submission) */
f1edf7f20661ef9627acbf4054acddcba4d2eb3fStephan Bosch /* ... represents these applications */
f1edf7f20661ef9627acbf4054acddcba4d2eb3fStephan Bosch /* ... is anonymous? */
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschvoid imap_urlauth_deinit(struct imap_urlauth_context **_uctx);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschint imap_urlauth_generate(struct imap_urlauth_context *uctx,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch const char **urlauth_r, const char **error_r);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschbool imap_urlauth_check(struct imap_urlauth_context *uctx,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch struct imap_url *url, bool ignore_unknown_access,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch const char **error_r);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschint imap_urlauth_fetch_parsed(struct imap_urlauth_context *uctx,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch const char **error_r);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschint imap_urlauth_fetch(struct imap_urlauth_context *uctx,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch const char *urlauth, struct imap_msgpart_url **mpurl_r,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch enum mail_error *error_code_r, const char **error_r);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschint imap_urlauth_reset_mailbox_key(struct imap_urlauth_context *uctx,