Enforce app password service policies

This commit is contained in:
Mario Fetka
2026-07-17 06:20:54 +02:00
parent 1a461b71a6
commit 26c183b521
9 changed files with 117 additions and 15 deletions
+12 -1
View File
@@ -30,10 +30,22 @@
#include <msgdate.h>
// Auth functions
enum {
MSG_AUTH_SERVICE_IMAP = 1U << 0,
MSG_AUTH_SERVICE_POP3 = 1U << 1,
MSG_AUTH_SERVICE_SMTP = 1U << 2,
MSG_AUTH_SERVICE_SIEVE = 1U << 3,
MSG_AUTH_SERVICE_CALDAV = 1U << 4,
MSG_AUTH_SERVICE_CARDDAV = 1U << 5
};
EXPORT int MsgAuthInit(void);
EXPORT int MsgAuthInstall(void);
EXPORT int MsgAuthFindUser(const char *user);
EXPORT BOOL MsgAuthVerifyPassword(const char *user, const char *password);
EXPORT int MsgAuthVerifyServicePassword(const char *user, const char *password,
unsigned int service,
const char *source_address);
EXPORT int MsgAuthChangePassword(const char *user, const char *oldpassword, const char *newpassword);
EXPORT int MsgAuthSetPassword(const char *user, const char *password);
EXPORT int MsgAuthGetUserStore(const char *user, struct sockaddr_in *store);
@@ -260,4 +272,3 @@ EXPORT int MsgImportIcsUrl(const char *user,
#endif
#endif /* MSGAPI_H */