gnutls_handshake.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 typedef enum Optional
00026 { OPTIONAL_PACKET, MANDATORY_PACKET } Optional;
00027
00028 int MHD_gtls_send_handshake (MHD_gtls_session_t session, void *i_data,
00029 uint32_t i_datasize,
00030 MHD_gnutls_handshake_description_t type);
00031 int MHD_gtls_recv_hello_request (MHD_gtls_session_t session, void *data,
00032 uint32_t data_size);
00033 int MHD_gtls_send_hello (MHD_gtls_session_t session, int again);
00034 int MHD_gtls_recv_hello (MHD_gtls_session_t session, opaque * data,
00035 int datalen);
00036 int MHD_gtls_recv_handshake (MHD_gtls_session_t session, uint8_t **, int *,
00037 MHD_gnutls_handshake_description_t,
00038 Optional optional);
00039 void
00040 MHD__gnutls_handshake_set_max_packet_length (MHD_gtls_session_t session,
00041 size_t max);
00042
00043 #define STATE session->internals.handshake_state
00044
00045
00046
00047 #define AGAIN(target) STATE==target?1:0