Blame doc/functions/gnutls_dh_set_prime_bits
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {void} {gnutls_dh_set_prime_bits} (gnutls_session_t @var{session}, unsigned int @var{bits})
|
|
Packit Service |
4684c1 |
@var{session}: is a @code{gnutls_session_t} type.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{bits}: is the number of bits
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function sets the number of bits, for use in a Diffie-Hellman
|
|
Packit Service |
4684c1 |
key exchange. This is used both in DH ephemeral and DH anonymous
|
|
Packit Service |
4684c1 |
cipher suites. This will set the minimum size of the prime that
|
|
Packit Service |
4684c1 |
will be used for the handshake.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
In the client side it sets the minimum accepted number of bits. If
|
|
Packit Service |
4684c1 |
a server sends a prime with less bits than that
|
|
Packit Service |
4684c1 |
@code{GNUTLS_E_DH_PRIME_UNACCEPTABLE} will be returned by the handshake.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Note that this function will warn via the audit log for value that
|
|
Packit Service |
4684c1 |
are believed to be weak.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The function has no effect in server side.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Note that since 3.1.7 this function is deprecated. The minimum
|
|
Packit Service |
4684c1 |
number of bits is set by the priority string level.
|
|
Packit Service |
4684c1 |
Also this function must be called after @code{gnutls_priority_set_direct()}
|
|
Packit Service |
4684c1 |
or the set value may be overridden by the selected priority options.
|
|
Packit Service |
4684c1 |
@end deftypefun
|