Enforce app password service policies
This commit is contained in:
+12
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user