Go to the source code of this file.
Functions | |
ssize_t | MHD_gtls_send_int (MHD_gtls_session_t session, content_type_t type, MHD_gnutls_handshake_description_t htype, const void *data, size_t sizeofdata) |
ssize_t | MHD_gtls_recv_int (MHD_gtls_session_t session, content_type_t type, MHD_gnutls_handshake_description_t, opaque *data, size_t sizeofdata) |
ssize_t | MHD_gtls_send_change_cipher_spec (MHD_gtls_session_t session, int again) |
void | MHD__gnutls_transport_set_lowat (MHD_gtls_session_t session, int num) |
void MHD__gnutls_transport_set_lowat | ( | MHD_gtls_session_t | session, | |
int | num | |||
) |
MHD__gnutls_transport_set_lowat - Used to set the lowat value in order for select to check for pending data. : is a MHD_gtls_session_t structure. : is the low water value.
Used to set the lowat value in order for select to check if there are pending data to socket buffer. Used only if you have changed the default low water value (default is 1). Normally you will not need that function. This function is only useful if using berkeley style sockets. Otherwise it must be called and set lowat to zero.
Definition at line 77 of file gnutls_record.c.
References MHD_gtls_session_int::internals, and MHD_gtls_internals_st::lowat.
ssize_t MHD_gtls_recv_int | ( | MHD_gtls_session_t | session, | |
content_type_t | type, | |||
MHD_gnutls_handshake_description_t | , | |||
opaque * | data, | |||
size_t | sizeofdata | |||
) |
Definition at line 760 of file gnutls_record.c.
References check_buffers(), check_recv_type(), MHD_gtls_session_int::connection_state, MHD_gnutls_datum_t::data, get_temp_recv_buffer(), GNUTLS_ALERT, GNUTLS_APPLICATION_DATA, GNUTLS_CHANGE_CIPHER_SPEC, GNUTLS_E_INT_RET_0, GNUTLS_E_INVALID_REQUEST, GNUTLS_E_INVALID_SESSION, GNUTLS_E_RECORD_LIMIT_REACHED, GNUTLS_E_TOO_MANY_EMPTY_PACKETS, GNUTLS_E_UNEXPECTED_PACKET, GNUTLS_E_UNEXPECTED_PACKET_LENGTH, GNUTLS_HANDSHAKE, GNUTLS_INNER_APPLICATION, MHD_gtls_session_int::internals, MAX_EMPTY_PACKETS_SEQUENCE, MAX_RECV_SIZE, MHD_gtls_internals_st::may_not_read, MHD__gnutls_packet2str(), MHD__gnutls_record_log, MHD_gnutls_assert, MHD_gnutls_record_buffer_get_size(), MHD_gtls_decrypt(), MHD_gtls_error_is_fatal(), MHD_gtls_io_clear_peeked_data(), MHD_gtls_io_clear_read_buffer(), MHD_gtls_io_read_buffered(), MHD_gtls_record_buffer_get(), MHD_gtls_uint64pp(), MHD_gtls_uint64touint32(), MHD_gtls_internals_st::read_eof, MHD_gtls_conn_stat_st::read_sequence_number, record_check_headers(), record_check_type(), record_check_version(), RECORD_HEADER_SIZE, session_invalidate(), session_is_valid(), session_unresumable(), and MHD_gnutls_datum_t::size.
Referenced by MHD__gnutls_bye(), MHD__gnutls_record_recv(), MHD__gnutls_recv_handshake_final(), MHD_gtls_handshake_io_recv_int(), and MHD_tls_connection_handle_read().
ssize_t MHD_gtls_send_change_cipher_spec | ( | MHD_gtls_session_t | session, | |
int | again | |||
) |
Definition at line 402 of file gnutls_record.c.
References GNUTLS_CHANGE_CIPHER_SPEC, GNUTLS_TYPE_CHANGE_CIPHER_SPEC, MHD__gnutls_handshake_log, MHD_gtls_io_write_flush(), and MHD_gtls_send_int().
Referenced by MHD__gnutls_send_handshake_final().
ssize_t MHD_gtls_send_int | ( | MHD_gtls_session_t | session, | |
content_type_t | type, | |||
MHD_gnutls_handshake_description_t | htype, | |||
const void * | data, | |||
size_t | sizeofdata | |||
) |
Definition at line 257 of file gnutls_record.c.
References MHD_gtls_session_int::connection_state, copy_record_version(), GNUTLS_ALERT, GNUTLS_E_ENCRYPTION_FAILED, GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_INVALID_REQUEST, GNUTLS_E_INVALID_SESSION, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_RECORD_LIMIT_REACHED, MHD_gtls_session_int::internals, MHD_gtls_string::length, MAX_RECORD_OVERHEAD, MAX_RECORD_SEND_SIZE, MHD_gtls_internals_st::may_not_write, MHD__gnutls_packet2str(), MHD__gnutls_record_log, MHD_gnutls_assert, MHD_gnutls_free, MHD_gnutls_malloc, MHD_gtls_encrypt(), MHD_gtls_error_is_fatal(), MHD_gtls_io_write_buffered(), MHD_gtls_io_write_flush(), MHD_gtls_uint64pp(), MHD_gtls_uint64touint32(), MHD_gtls_priority_st::no_padding, MHD_gtls_internals_st::priorities, RECORD_HEADER_SIZE, MHD_gtls_internals_st::record_send_buffer, MHD_gtls_internals_st::record_send_buffer_user_size, session_invalidate(), session_is_valid(), session_unresumable(), and MHD_gtls_conn_stat_st::write_sequence_number.
Referenced by MHD__gnutls_alert_send(), MHD__gnutls_record_send(), MHD_gtls_handshake_io_send_int(), and MHD_gtls_send_change_cipher_spec().