Debian Codegraph @

doc/functions/gnutls_srp_set_prime_bits

raw
1
2
3
4
5 @deftypefun {void} {gnutls_srp_set_prime_bits} (gnutls_session_t @var{session}, unsigned int @var{bits})
6 @var{session}: is a @code{gnutls_session_t} type.
7
8 @var{bits}: is the number of bits
9
10 This function sets the minimum accepted number of bits, for use in
11 an SRP key exchange. If zero, the default 2048 bits will be used.
12
13 In the client side it sets the minimum accepted number of bits. If
14 a server sends a prime with less bits than that
15 @code{GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER} will be returned by the
16 handshake.
17
18 This function has no effect in server side.
19
20 @strong{Since:} 2.6.0
21 @end deftypefun