Mercurial > dovecot > core-2.2
view src/lib-otp/otp.h @ 22633:9284bdc3c5c5
director: Don't recreate timeout on every user lookup
Recreate it only when the timeout should change.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 04 Nov 2017 01:34:02 +0200 |
parents | e4eb71ae8e96 |
children |
line wrap: on
line source
#ifndef OTP_H #define OTP_H #define OTP_MAX_SEED_LEN 16 #define OTP_MAX_WORD_LEN 4 #define OTP_WORDS_NUMBER 6 #define OTP_HASH_SIZE 8 struct otp_state { unsigned int algo; int seq; unsigned char hash[OTP_HASH_SIZE]; char seed[OTP_MAX_SEED_LEN + 1]; }; #include "otp-hash.h" #include "otp-dictionary.h" #include "otp-parity.h" #include "otp-parse.h" #endif