gnutls_ui.c File Reference

#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>

Include dependency graph for gnutls_ui.c:

Go to the source code of this file.

Functions

void MHD__gnutls_dh_set_prime_bits (MHD_gtls_session_t session, unsigned int bits)


Function Documentation

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().

Here is the caller graph for this function:


Generated on Fri Feb 27 18:20:13 2009 for GNU libmicrohttpd by  doxygen 1.5.8