From: Nikos Mavrogiannopoulos Date: Tue, 5 Feb 2013 18:19:24 +0000 (+0100) Subject: updated doc X-Git-Tag: gnutls_3_1_8~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43148347119caace5918dbb88551163eebf8d85b;p=thirdparty%2Fgnutls.git updated doc --- diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c index 4f34f6684e..94d826865d 100644 --- a/lib/gnutls_pubkey.c +++ b/lib/gnutls_pubkey.c @@ -1504,11 +1504,12 @@ gnutls_pubkey_import_dsa_raw (gnutls_pubkey_t key, * This function will verify the given signed data, using the * parameters from the certificate. * + * Deprecated. This function cannot be easily used securely. + * Use gnutls_pubkey_verify_data2() instead. + * * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED * is returned, and zero or positive code on success. * - * Deprecated. Use gnutls_pubkey_verify_data2() instead of this function. - * * Since: 2.12.0 **/ int @@ -1586,7 +1587,9 @@ gnutls_pubkey_verify_data2 (gnutls_pubkey_t pubkey, * This function will verify the given signed digest, using the * parameters from the public key. * - * Deprecated. Use gnutls_pubkey_verify_hash2() instead of this function. + * Deprecated. This function cannot be easily used securely. + * Use gnutls_pubkey_verify_hash2() instead. + * * * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED * is returned, and zero or positive code on success. diff --git a/lib/x509/x509.c b/lib/x509/x509.c index cd4272c704..132c383ce6 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -2992,7 +2992,8 @@ gnutls_x509_crt_get_preferred_hash_algorithm (gnutls_x509_crt_t crt, * This function will verify the given signed data, using the * parameters from the certificate. * - * Deprecated. Please use gnutls_pubkey_verify_data(). + * Deprecated. This function cannot be easily used securely. + * Use gnutls_pubkey_verify_data2() instead. * * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED * is returned, and zero or positive code on success. @@ -3030,7 +3031,8 @@ gnutls_x509_crt_verify_data (gnutls_x509_crt_t crt, unsigned int flags, * This function will verify the given signed digest, using the * parameters from the certificate. * - * Deprecated. Please use gnutls_pubkey_verify_data2() or gnutls_pubkey_verify_hash2(). + * Deprecated. This function cannot be easily used securely. + * Use gnutls_pubkey_verify_hash2() instead. * * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED * is returned, and zero or positive code on success.