Go to the source code of this file.
Functions | |
int | MHD_gtls_connection_state_init (MHD_gtls_session_t session) |
int | MHD_gtls_read_connection_state_init (MHD_gtls_session_t session) |
int | MHD_gtls_write_connection_state_init (MHD_gtls_session_t session) |
int | MHD_gtls_set_write_cipher (MHD_gtls_session_t session, enum MHD_GNUTLS_CipherAlgorithm algo) |
int | MHD_gtls_set_write_mac (MHD_gtls_session_t session, enum MHD_GNUTLS_HashAlgorithm algo) |
int | MHD_gtls_set_read_cipher (MHD_gtls_session_t session, enum MHD_GNUTLS_CipherAlgorithm algo) |
int | MHD_gtls_set_read_mac (MHD_gtls_session_t session, enum MHD_GNUTLS_HashAlgorithm algo) |
int | MHD_gtls_set_read_compression (MHD_gtls_session_t session, enum MHD_GNUTLS_CompressionMethod algo) |
int | MHD_gtls_set_write_compression (MHD_gtls_session_t session, enum MHD_GNUTLS_CompressionMethod algo) |
int | MHD_gtls_set_kx (MHD_gtls_session_t session, enum MHD_GNUTLS_KeyExchangeAlgorithm algo) |
int MHD_gtls_connection_state_init | ( | MHD_gtls_session_t | session | ) |
Definition at line 475 of file gnutls_constate.c.
References MHD_gnutls_assert, and MHD_gtls_generate_master().
Referenced by MHD__gnutls_recv_handshake_final(), and MHD__gnutls_send_handshake_final().
int MHD_gtls_read_connection_state_init | ( | MHD_gtls_session_t | session | ) |
Definition at line 496 of file gnutls_constate.c.
References MHD_gtls_session_int::cipher_specs, MHD_gtls_cipher_specs_st::client_write_IV, MHD_gtls_cipher_specs_st::client_write_key, MHD_gtls_cipher_specs_st::client_write_mac_secret, MHD_gtls_session_int::connection_state, MHD_gnutls_datum_t::data, MHD_gtls_security_param_st::entity, GNUTLS_CIPHER_FAILED, GNUTLS_CLIENT, GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM, GNUTLS_SERVER, MHD_gtls_session_int::internals, MHD__gnutls_cpy_read_security_parameters(), MHD__gnutls_free_datum, MHD__gnutls_handshake_log, MHD__gnutls_set_read_keys(), MHD__gnutls_sset_datum, MHD__gnutls_uint64zero, MHD_gnutls_assert, MHD_gnutls_cipher_deinit(), MHD_GNUTLS_CIPHER_NULL, MHD_gnutls_hash_get_algo_len(), MHD_gnutls_mac_is_ok(), MHD_gtls_cipher_init(), MHD_gtls_cipher_suite_get_cipher_algo(), MHD_gtls_cipher_suite_get_kx_algo(), MHD_gtls_cipher_suite_get_mac_algo(), MHD_gtls_cipher_suite_get_name(), MHD_gtls_compression_is_ok(), MHD_gtls_set_kx(), MHD_gtls_set_read_cipher(), MHD_gtls_set_read_compression(), MHD_gtls_set_read_mac(), MHD_gtls_security_param_st::read_bulk_cipher_algorithm, MHD_gtls_conn_stat_st::read_cipher_state, MHD_gtls_security_param_st::read_compression_algorithm, MHD_gtls_security_param_st::read_mac_algorithm, MHD_gtls_conn_stat_st::read_mac_secret, MHD_gtls_conn_stat_st::read_sequence_number, RESUME_FALSE, MHD_gtls_internals_st::resumed, MHD_gtls_session_int::security_parameters, MHD_gtls_cipher_specs_st::server_write_IV, MHD_gtls_cipher_specs_st::server_write_key, MHD_gtls_cipher_specs_st::server_write_mac_secret, and MHD_gnutls_datum_t::size.
Referenced by MHD__gnutls_recv_handshake_final().
int MHD_gtls_set_kx | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_KeyExchangeAlgorithm | algo | |||
) |
Definition at line 926 of file gnutls_constate.c.
References GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_UNWANTED_ALGORITHM, MHD_gtls_security_param_st::kx_algorithm, MHD_gnutls_assert, MHD_gtls_kx_is_ok(), MHD_gtls_kx_priority(), and MHD_gtls_session_int::security_parameters.
Referenced by MHD_gtls_read_connection_state_init(), and MHD_gtls_write_connection_state_init().
int MHD_gtls_set_read_cipher | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_CipherAlgorithm | algo | |||
) |
Definition at line 833 of file gnutls_constate.c.
References GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_UNWANTED_ALGORITHM, MHD_gnutls_assert, MHD_gtls_cipher_is_ok(), MHD_gtls_cipher_priority(), MHD_gtls_security_param_st::read_bulk_cipher_algorithm, and MHD_gtls_session_int::security_parameters.
Referenced by MHD_gtls_read_connection_state_init().
int MHD_gtls_set_read_compression | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_CompressionMethod | algo | |||
) |
Definition at line 888 of file gnutls_constate.c.
References GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM, MHD_gnutls_assert, MHD_gtls_compression_is_ok(), MHD_gtls_security_param_st::read_compression_algorithm, and MHD_gtls_session_int::security_parameters.
Referenced by MHD_gtls_read_connection_state_init().
int MHD_gtls_set_read_mac | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_HashAlgorithm | algo | |||
) |
Definition at line 952 of file gnutls_constate.c.
References GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_UNWANTED_ALGORITHM, MHD_gnutls_assert, MHD_gnutls_mac_is_ok(), MHD_gtls_mac_priority(), MHD_gtls_security_param_st::read_mac_algorithm, and MHD_gtls_session_int::security_parameters.
Referenced by MHD_gtls_read_connection_state_init().
int MHD_gtls_set_write_cipher | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_CipherAlgorithm | algo | |||
) |
Definition at line 859 of file gnutls_constate.c.
References GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_UNWANTED_ALGORITHM, MHD_gnutls_assert, MHD_gtls_cipher_is_ok(), MHD_gtls_cipher_priority(), MHD_gtls_session_int::security_parameters, and MHD_gtls_security_param_st::write_bulk_cipher_algorithm.
Referenced by MHD_gtls_write_connection_state_init().
int MHD_gtls_set_write_compression | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_CompressionMethod | algo | |||
) |
Definition at line 906 of file gnutls_constate.c.
References GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM, MHD_gnutls_assert, MHD_gtls_compression_is_ok(), MHD_gtls_session_int::security_parameters, and MHD_gtls_security_param_st::write_compression_algorithm.
Referenced by MHD_gtls_write_connection_state_init().
int MHD_gtls_set_write_mac | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_HashAlgorithm | algo | |||
) |
Definition at line 977 of file gnutls_constate.c.
References GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_UNWANTED_ALGORITHM, MHD_gnutls_assert, MHD_gnutls_mac_is_ok(), MHD_gtls_mac_priority(), MHD_gtls_session_int::security_parameters, and MHD_gtls_security_param_st::write_mac_algorithm.
Referenced by MHD_gtls_write_connection_state_init().
int MHD_gtls_write_connection_state_init | ( | MHD_gtls_session_t | session | ) |
Definition at line 664 of file gnutls_constate.c.
References MHD_gtls_session_int::cipher_specs, MHD_gtls_cipher_specs_st::client_write_IV, MHD_gtls_cipher_specs_st::client_write_key, MHD_gtls_cipher_specs_st::client_write_mac_secret, MHD_gtls_session_int::connection_state, MHD_gnutls_datum_t::data, MHD_gtls_security_param_st::entity, GNUTLS_CIPHER_FAILED, GNUTLS_CLIENT, GNUTLS_E_INTERNAL_ERROR, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM, GNUTLS_SERVER, MHD_gtls_session_int::internals, MHD__gnutls_cpy_write_security_parameters(), MHD__gnutls_free_datum, MHD__gnutls_handshake_log, MHD__gnutls_set_write_keys(), MHD__gnutls_sset_datum, MHD__gnutls_uint64zero, MHD_gnutls_assert, MHD_gnutls_cipher_deinit(), MHD_GNUTLS_CIPHER_NULL, MHD_gnutls_hash_get_algo_len(), MHD_gnutls_mac_is_ok(), MHD_gtls_cipher_init(), MHD_gtls_cipher_suite_get_cipher_algo(), MHD_gtls_cipher_suite_get_kx_algo(), MHD_gtls_cipher_suite_get_mac_algo(), MHD_gtls_cipher_suite_get_name(), MHD_gtls_compression_is_ok(), MHD_gtls_set_kx(), MHD_gtls_set_write_cipher(), MHD_gtls_set_write_compression(), MHD_gtls_set_write_mac(), RESUME_FALSE, MHD_gtls_internals_st::resumed, MHD_gtls_internals_st::resumed_security_parameters, MHD_gtls_session_int::security_parameters, MHD_gtls_cipher_specs_st::server_write_IV, MHD_gtls_cipher_specs_st::server_write_key, MHD_gtls_cipher_specs_st::server_write_mac_secret, MHD_gnutls_datum_t::size, MHD_gtls_security_param_st::write_bulk_cipher_algorithm, MHD_gtls_conn_stat_st::write_cipher_state, MHD_gtls_security_param_st::write_compression_algorithm, MHD_gtls_security_param_st::write_mac_algorithm, MHD_gtls_conn_stat_st::write_mac_secret, and MHD_gtls_conn_stat_st::write_sequence_number.
Referenced by MHD__gnutls_send_handshake_final().