From: Simon Josefsson Date: Thu, 5 Nov 2009 08:26:17 +0000 (+0100) Subject: Doc fix, add Since tag. X-Git-Tag: gnutls_2_9_8~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=558611f1067ab4fff299eb8de6da2d1e372be809;p=thirdparty%2Fgnutls.git Doc fix, add Since tag. --- 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);