diff options
Diffstat (limited to 'src/lib-otp/otp-parse.h')
-rw-r--r-- | src/lib-otp/otp-parse.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib-otp/otp-parse.h b/src/lib-otp/otp-parse.h new file mode 100644 index 0000000..527c676 --- /dev/null +++ b/src/lib-otp/otp-parse.h @@ -0,0 +1,16 @@ +#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 |