summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-11-05 09:26:17 +0100
committerSimon Josefsson <simon@josefsson.org>2009-11-05 09:26:17 +0100
commit558611f1067ab4fff299eb8de6da2d1e372be809 (patch)
treeaf174498cd7d44c93ec6ebfe86c96745c8b81444 /lib
parentc7d1fd6a1b3414aee4c2105274a7dbee8f3357cc (diff)
downloadgnutls-558611f1067ab4fff299eb8de6da2d1e372be809.tar.gz
Doc fix, add Since tag.
Diffstat (limited to 'lib')
-rw-r--r--lib/ext_signature.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/lib/ext_signature.c b/lib/ext_signature.c
index 77b608986a..69037eb0b2 100644
--- a/lib/ext_signature.c
+++ b/lib/ext_signature.c
@@ -284,28 +284,29 @@ _gnutls_session_sign_algo_enabled (gnutls_session_t session,
}
/**
- * gnutls_session_sign_algorithm_get - get signature algorithms requested by peer
- * @session: is a #gnutls_session_t structure.
- * @indx: is an index of the signature algorithm to return
- * @algo: the returned certificate type will be stored there
- *
- * Returns the signature algorithm specified by index that was
- * requested by the peer. If the specified index has no data
- * available this function returns
- * %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE. If the negotiated TLS
- * version does not support signature algorithms then
- * %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned even for
- * the first index.
- *
- * This function is usefull in the certificate callback functions
- * to assist in selecting the correct certificate.
- *
- * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
- * an error code is returned.
- **/
+ * gnutls_session_sign_algorithm_get - get signature algorithms requested by peer
+ * @session: is a #gnutls_session_t structure.
+ * @indx: is an index of the signature algorithm to return
+ * @algo: the returned certificate type will be stored there
+ *
+ * Returns the signature algorithm specified by index that was
+ * requested by the peer. If the specified index has no data available
+ * this function returns %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE. If
+ * the negotiated TLS version does not support signature algorithms
+ * then %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned even
+ * for the first index. The first index is 0.
+ *
+ * This function is usefull in the certificate callback functions
+ * to assist in selecting the correct certificate.
+ *
+ * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
+ * an error code is returned.
+ *
+ * Since: 2.10.0
+ **/
int
gnutls_session_sign_algorithm_get_requested (gnutls_session_t session,
- int indx,
+ size_t indx,
gnutls_sign_algorithm_t * algo)
{
gnutls_protocol_t ver = gnutls_protocol_get_version (session);