]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
doc update
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 27 May 2013 20:34:20 +0000 (22:34 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 27 May 2013 20:34:20 +0000 (22:34 +0200)
lib/gnutls_privkey.c

index 680d79c573552f2c38be2f80be4b8bac573a76b5..3e3e8111beae00e294ea7ba72f7a42d2e6f7b4ab 100644 (file)
@@ -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.
  *