Bug in gnutls_pubkey_verify_data() API documentation ?
Nikos Mavrogiannopoulos
nmav at gnutls.org
Sat Mar 17 09:25:33 CET 2012
On 03/17/2012 06:18 AM, Quan Nguyen wrote:
>
> In the API documentation, it says gnutls_pubkey_verify_data(): "On
> success, %GNUTLS_E_SUCCESS (0) is returned". However, looking at the
> source code in gnutls_pubkey.c, we see that this function calls
> pubkey_verify_data(), which returns 1 on success :"verifies the signature
> data, and returns GNUTLS_E_PK_SIG_VERIFY_FAILED if not verified, or 1
> otherwise."
You're correct. I've replaced it with:
Returns: In case of a verification failure
%GNUTLS_E_PK_SIG_VERIFY_FAILED is returned, and zero or positive code on
success.
thank you,
Nikos
More information about the Gnutls-devel
mailing list