[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [OATH-Toolkit-help] catching errors from strcmp_otp
From: |
Simon Josefsson |
Subject: |
Re: [OATH-Toolkit-help] catching errors from strcmp_otp |
Date: |
Fri, 12 Aug 2011 23:03:37 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Daniel Pocock <address@hidden> writes:
> The user callback strcmp_otp may need to return an error rather than
> just rejecting an OTP value.
>
> response = 0: OTP accepted
> response > 0: OTP mismatch
> response < 0: internal failure (e.g. memory allocation), don't try again
>
> I propose the patch below to allow this
>
> The callback could potentially put details of the error in the
> strcmp_handle, for use by user code
Thanks for the patch. I agree it looks useful. Committed, and will be
in soon to be released 1.10.3.
Cheers,
Simon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [OATH-Toolkit-help] catching errors from strcmp_otp,
Simon Josefsson <=