[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in gnutls_pubkey_verify_data() API documentation ?
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: Bug in gnutls_pubkey_verify_data() API documentation ? |
Date: |
Sat, 17 Mar 2012 09:25:33 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 |
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