From: Nikos Mavrogiannopoulos Date: Mon, 27 May 2013 20:34:20 +0000 (+0200) Subject: doc update X-Git-Tag: gnutls_3_2_2~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a0ab4bafd04211ff2abc6fa5c94bde5803da11f;p=thirdparty%2Fgnutls.git doc update --- diff --git a/lib/gnutls_privkey.c b/lib/gnutls_privkey.c index 680d79c573..3e3e8111be 100644 --- a/lib/gnutls_privkey.c +++ b/lib/gnutls_privkey.c @@ -751,7 +751,7 @@ cleanup: * gnutls_privkey_sign_hash: * @signer: Holds the signer's key * @hash_algo: The hash algorithm used - * @flags: Zero or on of %gnutls_privkey_flags_t + * @flags: Zero or one of %gnutls_privkey_flags_t * @hash_data: holds the data to be signed * @signature: will contain newly allocated signature * @@ -763,6 +763,9 @@ cleanup: * You may use gnutls_pubkey_get_preferred_hash_algorithm() to determine * the hash algorithm. * + * Note that if %GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA flag is specified this function + * will ignore @hash_algo and perform a raw PKCS1 signature. + * * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a * negative error value. *