From 75040a0ecdd7a88485cd6029eda5441ce83992ee Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 16 Nov 1996 17:53:33 +0000 Subject: [PATCH] more fields in the struct and a new function. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@980 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/otp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/otp/otp.h b/lib/otp/otp.h index f41ac6374..3c2714282 100644 --- a/lib/otp/otp.h +++ b/lib/otp/otp.h @@ -53,7 +53,7 @@ typedef unsigned char OtpKey[OTPKEYSIZE]; #define OTP_HEXPREFIX "hex:" #define OTP_WORDPREFIX "word:" -typedef enum { ALG_MD4, ALG_MD5, ALG_SHA } OtpAlgID; +typedef enum { OTP_ALG_MD4, OTP_ALG_MD5, OTP_ALG_SHA } OtpAlgID; typedef struct { OtpAlgID id; @@ -70,6 +70,8 @@ typedef struct { unsigned n; char seed[17]; OtpKey key; + int challengep; + char *err; } OtpContext; OtpAlgorithm *otp_find_alg (char *name); @@ -83,6 +85,7 @@ int otp_parse (OtpKey key, char *, OtpAlgorithm *); int otp_challenge (OtpContext *ctx, char *user, char *str, size_t len); int otp_verify_user (OtpContext *ctx, char *passwd); int otp_verify_user_1 (OtpContext *ctx, char *passwd); +char *otp_error (OtpContext *ctx); void *otp_db_open (void); void otp_db_close (void *);