diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-17 09:24:00 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-17 09:24:00 +0100 |
commit | 8af7669ec60d3f8bddeda0bd7295aff4986bd708 (patch) | |
tree | 41abf6df62cf98ce7d350be77cf45ddfb9969b94 /lib/x509 | |
parent | dbd17e9817319a4a32038f3559f7677003560fba (diff) | |
download | gnutls-8af7669ec60d3f8bddeda0bd7295aff4986bd708.tar.gz |
corrected the documentation of the verification functions.
Diffstat (limited to 'lib/x509')
-rw-r--r-- | lib/x509/crq.c | 5 | ||||
-rw-r--r-- | lib/x509/x509.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/x509/crq.c b/lib/x509/crq.c index e21341ebba..4873d69087 100644 --- a/lib/x509/crq.c +++ b/lib/x509/crq.c @@ -2422,9 +2422,8 @@ gnutls_x509_crq_privkey_sign (gnutls_x509_crq_t crq, gnutls_privkey_t key, * This function will verify self signature in the certificate * request and return its status. * - * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, - * %GNUTLS_E_PK_SIG_VERIFY_FAILED if verification failed, otherwise a - * negative error value. + * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED + * is returned, and zero or positive code on success. * * Since 2.12.0 **/ diff --git a/lib/x509/x509.c b/lib/x509/x509.c index d98a2b6529..fc36e89192 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -2585,7 +2585,7 @@ gnutls_x509_crt_get_preferred_hash_algorithm (gnutls_x509_crt_t crt, * Deprecated. Please use gnutls_pubkey_verify_data(). * * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED - * is returned, and a positive code on success. + * is returned, and zero or positive code on success. **/ int gnutls_x509_crt_verify_data (gnutls_x509_crt_t crt, unsigned int flags, @@ -2623,7 +2623,7 @@ gnutls_x509_crt_verify_data (gnutls_x509_crt_t crt, unsigned int flags, * Deprecated. Please use gnutls_pubkey_verify_data(). * * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED - * is returned, and a positive code on success. + * is returned, and zero or positive code on success. **/ int gnutls_x509_crt_verify_hash (gnutls_x509_crt_t crt, unsigned int flags, |