view src/lib-otp/otp-parse.h @ 9445:d7f8dbc38fd7 HEAD

imap: If client disconnects while appending, don't treat the rest of the message as commands.
author Timo Sirainen <tss@iki.fi>
date Tue, 20 Oct 2009 13:21:13 -0400
parents e4eb71ae8e96
children
line wrap: on
line source

#ifndef OTP_PARSE_H
#define OTP_PARSE_H

int otp_read_hex(const char *data, const char **endptr, unsigned char *hash);
int otp_read_words(const char *data, const char **endptr, unsigned char *hash);
int otp_read_new_params(const char *data, const char **endptr,
			struct otp_state *state);

int otp_parse_response(const char *data, unsigned char *hash, bool hex);
int otp_parse_init_response(const char *data, struct otp_state *new_state,
			    unsigned char *hash, bool hex, const char **error);

int otp_parse_dbentry(const char *text, struct otp_state *state);
const char *otp_print_dbentry(const struct otp_state *state);

#endif