#include <gnutls_int.h>
#include <auth_cert.h>
#include <gnutls_errors.h>
#include <gnutls_auth_int.h>
#include <gnutls_state.h>
#include <gnutls_datum.h>
Go to the source code of this file.
Functions | |
void | MHD__gnutls_dh_set_prime_bits (MHD_gtls_session_t session, unsigned int bits) |
void MHD__gnutls_dh_set_prime_bits | ( | MHD_gtls_session_t | session, | |
unsigned int | bits | |||
) |
MHD__gnutls_dh_set_prime_bits - Used to set the bits for a DH ciphersuite : is a MHD_gtls_session_t structure. : is the number of bits
This function sets the number of bits, for use in an Diffie Hellman key exchange. This is used both in DH ephemeral and DH anonymous cipher suites. This will set the minimum size of the prime that will be used for the handshake.
In the client side it sets the minimum accepted number of bits. If a server sends a prime with less bits than that GNUTLS_E_DH_PRIME_UNACCEPTABLE will be returned by the handshake.
Definition at line 55 of file gnutls_ui.c.
References MHD_gtls_internals_st::dh_prime_bits, and MHD_gtls_session_int::internals.
Referenced by MHD__gnutls_init().