gnutls_handshake.h File Reference

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

Go to the source code of this file.

Defines

#define STATE   session->internals.handshake_state
#define AGAIN(target)   STATE==target?1:0

Enumerations

enum  Optional { OPTIONAL_PACKET, MANDATORY_PACKET }

Functions

int MHD_gtls_send_handshake (MHD_gtls_session_t session, void *i_data, uint32_t i_datasize, MHD_gnutls_handshake_description_t type)
int MHD_gtls_recv_hello_request (MHD_gtls_session_t session, void *data, uint32_t data_size)
int MHD_gtls_send_hello (MHD_gtls_session_t session, int again)
int MHD_gtls_recv_hello (MHD_gtls_session_t session, opaque *data, int datalen)
int MHD_gtls_recv_handshake (MHD_gtls_session_t session, uint8_t **, int *, MHD_gnutls_handshake_description_t, Optional optional)
void MHD__gnutls_handshake_set_max_packet_length (MHD_gtls_session_t session, size_t max)


Define Documentation

#define AGAIN ( target   )     STATE==target?1:0

#define STATE   session->internals.handshake_state


Enumeration Type Documentation

enum Optional

Enumerator:
OPTIONAL_PACKET 
MANDATORY_PACKET 

Definition at line 25 of file gnutls_handshake.h.


Function Documentation

void MHD__gnutls_handshake_set_max_packet_length ( MHD_gtls_session_t  session,
size_t  max 
)

gnutls_handshake_set_max_packet_length - This function will set the maximum length of a handshake message : is a gnutls_session_t structure. : is the maximum number.

This function will set the maximum size of a handshake message. Handshake messages over this size are rejected. The default value is 16kb which is large enough. Set this to 0 if you do not want to set an upper limit.

Definition at line 115 of file gnutls_handshake.c.

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

int MHD_gtls_recv_handshake ( MHD_gtls_session_t  session,
uint8_t **  ,
int *  ,
MHD_gnutls_handshake_description_t  ,
Optional  optional 
)

int MHD_gtls_recv_hello ( MHD_gtls_session_t  session,
opaque data,
int  datalen 
)

Definition at line 1897 of file gnutls_handshake.c.

References MHD_gtls_security_param_st::entity, GNUTLS_CLIENT, MHD__gnutls_read_client_hello(), MHD_gnutls_assert, and MHD_gtls_session_int::security_parameters.

Referenced by MHD_gtls_recv_handshake().

Here is the call graph for this function:

Here is the caller graph for this function:

int MHD_gtls_recv_hello_request ( MHD_gtls_session_t  session,
void *  data,
uint32_t  data_size 
)

int MHD_gtls_send_handshake ( MHD_gtls_session_t  session,
void *  i_data,
uint32_t  i_datasize,
MHD_gnutls_handshake_description_t  type 
)

int MHD_gtls_send_hello ( MHD_gtls_session_t  session,
int  again 
)

Definition at line 1874 of file gnutls_handshake.c.

References MHD_gtls_security_param_st::entity, GNUTLS_CLIENT, MHD__gnutls_send_server_hello(), and MHD_gtls_session_int::security_parameters.

Referenced by MHD_gtls_handshake_server().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Fri Feb 27 18:32:02 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1