Debian Codegraph @

doc/functions/gnutls_priority_get_cipher_suite_index

raw
1
2
3
4
5 @deftypefun {int} {gnutls_priority_get_cipher_suite_index} (gnutls_priority_t @var{pcache}, unsigned int @var{idx}, unsigned int * @var{sidx})
6 @var{pcache}: is a @code{gnutls_priority_t} type.
7
8 @var{idx}: is an index number.
9
10 @var{sidx}: internal index of cipher suite to get information about.
11
12 Provides the internal ciphersuite index to be used with
13 @code{gnutls_cipher_suite_info()} . The index @code{idx} provided is an
14 index kept at the priorities structure. It might be that a valid
15 priorities index does not correspond to a ciphersuite and in
16 that case @code{GNUTLS_E_UNKNOWN_CIPHER_SUITE} will be returned.
17 Once the last available index is crossed then
18 @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} will be returned.
19
20 @strong{Returns:} On success it returns @code{GNUTLS_E_SUCCESS} (0), or a negative error value otherwise.
21
22 @strong{Since:} 3.0.9
23 @end deftypefun