Mercurial > dovecot > original-hg > dovecot-1.2
diff src/auth/otp-skey-common.h @ 4798:c04189d77a59 HEAD
Added OTP and S/KEY authentication mechanisms. Patch by Andrey Panin.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 12 Nov 2006 21:36:39 +0200 |
parents | |
children | e33a87152c41 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/auth/otp-skey-common.h Sun Nov 12 21:36:39 2006 +0200 @@ -0,0 +1,22 @@ +#ifndef __OTP_SKEY_COMMON_H__ +#define __OTP_SKEY_COMMON_H__ + +struct otp_auth_request { + struct auth_request auth_request; + + pool_t pool; + + int lock; + + struct otp_state state; +}; + +void otp_lock_init(void); +int otp_try_lock(struct auth_request *auth_request); +void otp_unlock(struct auth_request *auth_request); + +void otp_set_credentials_callback(enum passdb_result result, + struct auth_request *auth_request); +void mech_otp_skey_auth_free(struct auth_request *auth_request); + +#endif /* __OTP_SKEY_COMMON_H__ */