gnutls_state.h File Reference

#include <gnutls_int.h>
#include <gnutls_auth_int.h>

Include dependency graph for gnutls_state.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHECK_AUTH(auth, ret)
#define DEFAULT_CERT_TYPE   MHD_GNUTLS_CRT_X509

Functions

void MHD__gnutls_session_cert_type_set (MHD_gtls_session_t session, enum MHD_GNUTLS_CertificateType)
enum
MHD_GNUTLS_KeyExchangeAlgorithm 
MHD_gnutls_kx_get (MHD_gtls_session_t session)
enum MHD_GNUTLS_CipherAlgorithm MHD_gnutls_cipher_get (MHD_gtls_session_t session)
enum MHD_GNUTLS_CertificateType MHD_gnutls_certificate_type_get (MHD_gtls_session_t)
int MHD_gtls_session_cert_type_supported (MHD_gtls_session_t, enum MHD_GNUTLS_CertificateType)
int MHD_gtls_dh_set_secret_bits (MHD_gtls_session_t session, unsigned bits)
int MHD_gtls_dh_set_peer_public (MHD_gtls_session_t session, mpi_t public)
int MHD_gtls_dh_set_group (MHD_gtls_session_t session, mpi_t gen, mpi_t prime)
int MHD_gtls_dh_get_allowed_prime_bits (MHD_gtls_session_t session)
void MHD_gtls_handshake_internal_state_clear (MHD_gtls_session_t)
int MHD_gtls_rsa_export_set_pubkey (MHD_gtls_session_t session, mpi_t exponent, mpi_t modulus)
int MHD_gtls_session_is_resumable (MHD_gtls_session_t session)
int MHD_gtls_session_is_export (MHD_gtls_session_t session)
int MHD_gtls_openpgp_send_fingerprint (MHD_gtls_session_t session)
int MHD_gtls_PRF (MHD_gtls_session_t session, const opaque *secret, int secret_size, const char *label, int label_size, const opaque *seed, int seed_size, int total_bytes, void *ret)
int MHD__gnutls_init (MHD_gtls_session_t *session, MHD_gnutls_connection_end_t con_end)


Define Documentation

#define CHECK_AUTH ( auth,
ret   ) 

Value:

if (MHD_gtls_auth_get_type(session) != auth) { \
        MHD_gnutls_assert(); \
        return ret; \
        }

Definition at line 41 of file gnutls_state.h.

#define DEFAULT_CERT_TYPE   MHD_GNUTLS_CRT_X509


Function Documentation

int MHD__gnutls_init ( MHD_gtls_session_t session,
MHD_gnutls_connection_end_t  con_end 
)

MHD__gnutls_init - This function initializes the session to null (null encryption etc...). : indicate if this session is to be used for server or client. : is a pointer to a MHD_gtls_session_t structure.

This function initializes the current session to null. Every session must be initialized before use, so internal structures can be allocated. This function allocates structures which can only be free'd by calling MHD__gnutls_deinit(). Returns zero on success.

can be one of GNUTLS_CLIENT and GNUTLS_SERVER.

Returns: GNUTLS_E_SUCCESS on success, or an error code.

Definition at line 213 of file gnutls_state.c.

References DEFAULT_CERT_TYPE, DEFAULT_EXPIRE_TIME, DEFAULT_LOWAT, DEFAULT_MAX_RECORD_SIZE, GNUTLS_E_MEMORY_ERROR, INITIAL_RECV_BUFFER_SIZE, MAX_HANDSHAKE_PACKET_SIZE, MHD__gnutls_dh_set_prime_bits(), MHD__gnutls_handshake_set_max_packet_length(), MHD__gnutls_transport_set_lowat(), MHD_gnutls_calloc, MHD_GNUTLS_CIPHER_NULL, MHD_gnutls_free, MHD_GNUTLS_MAC_NULL, MHD_gnutls_malloc, MHD_gtls_buffer_init, MHD_gtls_handshake_internal_state_clear(), and MIN_DH_BITS.

Here is the call graph for this function:

void MHD__gnutls_session_cert_type_set ( MHD_gtls_session_t  session,
enum  MHD_GNUTLS_CertificateType 
)

Definition at line 45 of file gnutls_state.c.

References MHD_gtls_security_param_st::cert_type, and MHD_gtls_session_int::security_parameters.

Referenced by MHD_gtls_cert_type_recv_params().

Here is the caller graph for this function:

enum MHD_GNUTLS_CertificateType MHD_gnutls_certificate_type_get ( MHD_gtls_session_t  session  ) 

MHD_gnutls_certificate_type_get - Returns the currently used certificate type. : is a MHD_gtls_session_t structure.

The certificate type is by default X.509, unless it is negotiated as a TLS extension.

Returns: the currently used enum MHD_GNUTLS_CertificateType certificate type.

Definition at line 74 of file gnutls_state.c.

References MHD_gtls_security_param_st::cert_type, and MHD_gtls_session_int::security_parameters.

Referenced by call_get_cert_callback(), and get_issuers().

Here is the caller graph for this function:

enum MHD_GNUTLS_CipherAlgorithm MHD_gnutls_cipher_get ( MHD_gtls_session_t  session  ) 

MHD_gnutls_cipher_get - Returns the currently used cipher. : is a MHD_gtls_session_t structure.

Returns: the currently used cipher.

Definition at line 58 of file gnutls_state.c.

References MHD_gtls_security_param_st::read_bulk_cipher_algorithm, and MHD_gtls_session_int::security_parameters.

enum MHD_GNUTLS_KeyExchangeAlgorithm MHD_gnutls_kx_get ( MHD_gtls_session_t  session  ) 

MHD_gnutls_kx_get - Returns the key exchange algorithm. : is a MHD_gtls_session_t structure.

Returns: the key exchange algorithm used in the last handshake.

Definition at line 86 of file gnutls_state.c.

References MHD_gtls_security_param_st::kx_algorithm, and MHD_gtls_session_int::security_parameters.

Referenced by MHD_gtls_proc_x509_server_certificate().

Here is the caller graph for this function:

int MHD_gtls_dh_get_allowed_prime_bits ( MHD_gtls_session_t  session  ) 

Definition at line 372 of file gnutls_state.c.

References MHD_gtls_internals_st::dh_prime_bits, and MHD_gtls_session_int::internals.

Referenced by MHD_gtls_proc_dh_common_server_kx().

Here is the caller graph for this function:

int MHD_gtls_dh_set_group ( MHD_gtls_session_t  session,
mpi_t  gen,
mpi_t  prime 
)

int MHD_gtls_dh_set_peer_public ( MHD_gtls_session_t  session,
mpi_t  public 
)

int MHD_gtls_dh_set_secret_bits ( MHD_gtls_session_t  session,
unsigned  bits 
)

void MHD_gtls_handshake_internal_state_clear ( MHD_gtls_session_t   ) 

int MHD_gtls_openpgp_send_fingerprint ( MHD_gtls_session_t  session  ) 

int MHD_gtls_PRF ( MHD_gtls_session_t  session,
const opaque secret,
int  secret_size,
const char *  label,
int  label_size,
const opaque seed,
int  seed_size,
int  total_bytes,
void *  ret 
)

int MHD_gtls_rsa_export_set_pubkey ( MHD_gtls_session_t  session,
mpi_t  exponent,
mpi_t  modulus 
)

int MHD_gtls_session_cert_type_supported ( MHD_gtls_session_t  ,
enum  MHD_GNUTLS_CertificateType 
)

int MHD_gtls_session_is_export ( MHD_gtls_session_t  session  ) 

Definition at line 769 of file gnutls_state.c.

References MHD_gtls_cipher_get_export_flag(), MHD_gtls_cipher_suite_get_cipher_algo(), and MHD_gtls_session_int::security_parameters.

Referenced by MHD_gtls_recv_server_kx_message().

Here is the call graph for this function:

Here is the caller graph for this function:

int MHD_gtls_session_is_resumable ( MHD_gtls_session_t  session  ) 


Generated on Tue May 19 23:23:05 2009 for GNU libmicrohttpd by  doxygen 1.5.8