From: Nikos Mavrogiannopoulos Date: Wed, 23 Mar 2011 17:04:16 +0000 (+0100) Subject: updated documentation X-Git-Tag: gnutls_2_99_0~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5825b5e9b5a729236f8e9b94fbf3ea4f79d6cfc2;p=thirdparty%2Fgnutls.git updated documentation --- diff --git a/lib/gnutls_privkey.c b/lib/gnutls_privkey.c index 0ee2911c8c..11a691ca7f 100644 --- a/lib/gnutls_privkey.c +++ b/lib/gnutls_privkey.c @@ -421,7 +421,7 @@ gnutls_openpgp_keyid_t keyid; #endif /** - * gnutls_privkey_sign_data2: + * gnutls_privkey_sign_data: * @signer: Holds the key * @hash: should be a digest algorithm * @flags: should be 0 for now @@ -431,7 +431,10 @@ gnutls_openpgp_keyid_t keyid; * This function will sign the given data using a signature algorithm * supported by the private key. Signature algorithms are always used * together with a hash functions. Different hash functions may be - * used for the RSA algorithm, but only SHA-1 for the DSA keys. + * used for the RSA algorithm, but only the SHA family for the DSA keys. + * + * Use gnutls_pubkey_get_preferred_hash_algorithm() to determine + * the hash algorithm. * * Returns: On success, %GNUTLS_E_SUCCESS is returned, otherwise a * negative error value. @@ -491,7 +494,7 @@ cleanup: * together with a hash functions. Different hash functions may be * used for the RSA algorithm, but only SHA-XXX for the DSA keys. * - * Use gnutls_x509_crt_get_preferred_hash_algorithm() to determine + * Use gnutls_pubkey_get_preferred_hash_algorithm() to determine * the hash algorithm. * * Returns: On success, %GNUTLS_E_SUCCESS is returned, otherwise a