summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-12 20:45:01 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-12 20:45:01 +0100
commit0bc931b1530e31f31215622e8ad38157f8e46218 (patch)
treeced6883527edb8433b95c037ad1c98af028b29af /lib
parentec7b99aaeb7b0fe27e3ff79ef5ef974b63da7904 (diff)
downloadgnutls-0bc931b1530e31f31215622e8ad38157f8e46218.tar.gz
doc update
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_pubkey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c
index 94d826865d..cc250215ed 100644
--- a/lib/gnutls_pubkey.c
+++ b/lib/gnutls_pubkey.c
@@ -250,6 +250,9 @@ gnutls_pubkey_import_privkey (gnutls_pubkey_t key, gnutls_privkey_t pkey,
* algorithm to use for signing with this certificate. Some certificates (i.e.
* DSA might not be able to sign without the preferred algorithm).
*
+ * To get the signature algorithm instead of just the hash use gnutls_pk_to_sign()
+ * with the algorithm of the certificate/key and the provided @hash.
+ *
* Returns: the 0 if the hash algorithm is found. A negative error code is
* returned on error.
*