#include "gnutls_auth.h"
Go to the source code of this file.
typedef struct MHD_gtls_compression_entry MHD_gnutls_compression_entry |
Definition at line 130 of file gnutls_algorithms.h.
enum encipher_type |
Definition at line 112 of file gnutls_algorithms.h.
int MHD_gnutls_mac_is_ok | ( | enum MHD_GNUTLS_HashAlgorithm | algorithm | ) |
Definition at line 525 of file gnutls_algorithms.c.
References GNUTLS_HASH_ALG_LOOP.
Referenced by MHD_gtls_read_connection_state_init(), MHD_gtls_set_read_mac(), MHD_gtls_set_write_mac(), and MHD_gtls_write_connection_state_init().
enum MHD_GNUTLS_CertificateType MHD_gtls_certificate_type_get_id | ( | const char * | name | ) |
int MHD_gtls_cipher_get_block_size | ( | enum MHD_GNUTLS_CipherAlgorithm | algorithm | ) |
Definition at line 649 of file gnutls_algorithms.c.
References GNUTLS_ALG_LOOP.
Referenced by MHD_gtls_ciphertext2compressed(), and MHD_gtls_compressed2ciphertext().
int MHD_gtls_cipher_get_export_flag | ( | enum MHD_GNUTLS_CipherAlgorithm | algorithm | ) |
Definition at line 707 of file gnutls_algorithms.c.
References GNUTLS_ALG_LOOP.
Referenced by MHD__gnutls_set_read_keys(), MHD__gnutls_set_write_keys(), and MHD_gtls_session_is_export().
enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_cipher_get_id | ( | const char * | name | ) |
int MHD_gtls_cipher_get_iv_size | ( | enum MHD_GNUTLS_CipherAlgorithm | algorithm | ) |
Definition at line 698 of file gnutls_algorithms.c.
References GNUTLS_ALG_LOOP.
Referenced by MHD__gnutls_set_read_keys(), and MHD__gnutls_set_write_keys().
int MHD_gtls_cipher_is_block | ( | enum MHD_GNUTLS_CipherAlgorithm | algorithm | ) |
Definition at line 672 of file gnutls_algorithms.c.
References GNUTLS_ALG_LOOP.
Referenced by MHD_gtls_ciphertext2compressed(), and MHD_gtls_compressed2ciphertext().
int MHD_gtls_cipher_is_ok | ( | enum MHD_GNUTLS_CipherAlgorithm | algorithm | ) |
Definition at line 717 of file gnutls_algorithms.c.
References GNUTLS_ALG_LOOP.
Referenced by MHD_gtls_set_read_cipher(), and MHD_gtls_set_write_cipher().
int MHD_gtls_cipher_priority | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_CipherAlgorithm | algorithm | |||
) |
Definition at line 659 of file gnutls_algorithms.c.
References MHD_gtls_priority_st::cipher, MHD_gtls_session_int::internals, MHD_gtls_priority_st::num_algorithms, MHD_gtls_internals_st::priorities, and MHD_gtls_priority_st::priority.
Referenced by MHD__gnutls_compare_algo(), MHD_gtls_set_read_cipher(), MHD_gtls_set_write_cipher(), and MHD_gtls_supported_ciphersuites().
enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_cipher_suite_get_cipher_algo | ( | const cipher_suite_st * | algorithm | ) |
Definition at line 893 of file gnutls_algorithms.c.
References GNUTLS_CIPHER_SUITE_ALG_LOOP.
Referenced by MHD__gnutls_compare_algo(), MHD_gtls_read_connection_state_init(), MHD_gtls_session_is_export(), MHD_gtls_supported_ciphersuites(), and MHD_gtls_write_connection_state_init().
enum MHD_GNUTLS_KeyExchangeAlgorithm MHD_gtls_cipher_suite_get_kx_algo | ( | const cipher_suite_st * | algorithm | ) |
Definition at line 909 of file gnutls_algorithms.c.
References GNUTLS_CIPHER_SUITE_ALG_LOOP.
Referenced by MHD__gnutls_compare_algo(), MHD__gnutls_get_private_rsa_params(), MHD__gnutls_get_public_rsa_params(), MHD__gnutls_server_find_pk_algos_in_ciphersuites(), MHD_gtls_auth_get_type(), MHD_gtls_read_connection_state_init(), MHD_gtls_remove_unwanted_ciphersuites(), MHD_gtls_server_select_suite(), MHD_gtls_supported_ciphersuites(), and MHD_gtls_write_connection_state_init().
enum MHD_GNUTLS_HashAlgorithm MHD_gtls_cipher_suite_get_mac_algo | ( | const cipher_suite_st * | algorithm | ) |
Definition at line 919 of file gnutls_algorithms.c.
References GNUTLS_CIPHER_SUITE_ALG_LOOP.
Referenced by MHD__gnutls_compare_algo(), MHD_gtls_read_connection_state_init(), MHD_gtls_supported_ciphersuites(), and MHD_gtls_write_connection_state_init().
const char* MHD_gtls_cipher_suite_get_name | ( | cipher_suite_st * | algorithm | ) |
Definition at line 928 of file gnutls_algorithms.c.
References GNUTLS_CIPHER_SUITE_ALG_LOOP.
Referenced by MHD_gtls_read_connection_state_init(), MHD_gtls_remove_unwanted_ciphersuites(), MHD_gtls_server_select_suite(), and MHD_gtls_write_connection_state_init().
cipher_suite_st MHD_gtls_cipher_suite_get_suite_name | ( | cipher_suite_st * | algorithm | ) |
enum MHD_GNUTLS_Protocol MHD_gtls_cipher_suite_get_version | ( | const cipher_suite_st * | algorithm | ) |
Definition at line 901 of file gnutls_algorithms.c.
References GNUTLS_CIPHER_SUITE_ALG_LOOP.
Referenced by MHD_gtls_supported_ciphersuites().
int MHD_gtls_compression_get_comp_level | ( | enum MHD_GNUTLS_CompressionMethod | algorithm | ) |
Definition at line 612 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_ALG_LOOP.
enum MHD_GNUTLS_CompressionMethod MHD_gtls_compression_get_id_from_int | ( | int | num | ) |
Definition at line 625 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_ALG_LOOP_NUM.
Referenced by MHD__gnutls_server_select_comp_method().
int MHD_gtls_compression_get_mem_level | ( | enum MHD_GNUTLS_CompressionMethod | algorithm | ) |
Definition at line 602 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_ALG_LOOP.
int MHD_gtls_compression_get_num | ( | enum MHD_GNUTLS_CompressionMethod | algorithm | ) |
Definition at line 582 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_ALG_LOOP.
Referenced by MHD__gnutls_send_server_hello(), and MHD_gtls_supported_compression_methods().
int MHD_gtls_compression_get_wbits | ( | enum MHD_GNUTLS_CompressionMethod | algorithm | ) |
Definition at line 593 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_ALG_LOOP.
int MHD_gtls_compression_is_ok | ( | enum MHD_GNUTLS_CompressionMethod | algorithm | ) |
Definition at line 636 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_ALG_LOOP.
Referenced by MHD_gtls_read_connection_state_init(), MHD_gtls_set_read_compression(), MHD_gtls_set_write_compression(), and MHD_gtls_write_connection_state_init().
MHD_gtls_mod_auth_st* MHD_gtls_kx_auth_struct | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm | ) |
Definition at line 730 of file gnutls_algorithms.c.
References GNUTLS_KX_ALG_LOOP.
Referenced by MHD_gtls_server_select_suite().
enum encipher_type MHD_gtls_kx_encipher_type | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm | ) |
Definition at line 1240 of file gnutls_algorithms.c.
References CIPHER_IGN, and GNUTLS_PK_MAP_ALG_LOOP.
Referenced by MHD__gnutls_check_key_usage().
enum MHD_GNUTLS_KeyExchangeAlgorithm MHD_gtls_kx_get_id | ( | const char * | name | ) |
int MHD_gtls_kx_is_ok | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm | ) |
Definition at line 753 of file gnutls_algorithms.c.
References GNUTLS_KX_ALG_LOOP.
Referenced by MHD_gtls_set_kx().
int MHD_gtls_kx_needs_dh_params | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm | ) |
Definition at line 773 of file gnutls_algorithms.c.
References GNUTLS_KX_ALG_LOOP.
Referenced by check_server_params().
int MHD_gtls_kx_needs_rsa_params | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm | ) |
Definition at line 765 of file gnutls_algorithms.c.
References GNUTLS_KX_ALG_LOOP.
Referenced by check_server_params().
int MHD_gtls_kx_priority | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm | |||
) |
Definition at line 739 of file gnutls_algorithms.c.
References MHD_gtls_session_int::internals, MHD_gtls_priority_st::kx, MHD_gtls_priority_st::num_algorithms, MHD_gtls_internals_st::priorities, and MHD_gtls_priority_st::priority.
Referenced by MHD__gnutls_compare_algo(), MHD_gtls_set_kx(), and MHD_gtls_supported_ciphersuites().
enum MHD_GNUTLS_HashAlgorithm MHD_gtls_mac_get_id | ( | const char * | name | ) |
int MHD_gtls_mac_priority | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_HashAlgorithm | algorithm | |||
) |
Definition at line 511 of file gnutls_algorithms.c.
References MHD_gtls_session_int::internals, MHD_gtls_priority_st::mac, MHD_gtls_priority_st::num_algorithms, MHD_gtls_internals_st::priorities, and MHD_gtls_priority_st::priority.
Referenced by MHD__gnutls_compare_algo(), MHD_gtls_set_read_mac(), MHD_gtls_set_write_mac(), and MHD_gtls_supported_ciphersuites().
enum MHD_GNUTLS_CredentialsType MHD_gtls_map_kx_get_cred | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | algorithm, | |
int | server | |||
) |
Definition at line 873 of file gnutls_algorithms.c.
References GNUTLS_KX_MAP_LOOP.
Referenced by check_server_params(), MHD__gnutls_check_key_usage(), MHD__gnutls_server_find_pk_algos_in_ciphersuites(), MHD_gtls_auth_get_type(), and MHD_gtls_get_kx_cred().
enum MHD_GNUTLS_PublicKeyAlgorithm MHD_gtls_map_pk_get_pk | ( | enum MHD_GNUTLS_KeyExchangeAlgorithm | kx_algorithm | ) |
Definition at line 1227 of file gnutls_algorithms.c.
References GNUTLS_PK_MAP_ALG_LOOP.
Referenced by MHD__gnutls_server_find_pk_algos_in_ciphersuites(), and MHD_gtls_selected_cert_supported_kx().
enum MHD_GNUTLS_Protocol MHD_gtls_protocol_get_id | ( | const char * | name | ) |
int MHD_gtls_supported_ciphersuites | ( | MHD_gtls_session_t | session, | |
cipher_suite_st ** | ciphers | |||
) |
Definition at line 1089 of file gnutls_algorithms.c.
References CIPHER_SUITES_COUNT, GNUTLS_E_MEMORY_ERROR, GNUTLS_E_NO_CIPHER_SUITES, MHD__gnutls_protocol_get_version(), MHD_gnutls_afree, MHD_gnutls_assert, MHD_gnutls_free, MHD_gnutls_malloc, MHD_gtls_cipher_priority(), 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_version(), MHD_gtls_cs_algorithms, MHD_gtls_kx_priority(), and MHD_gtls_mac_priority().
Referenced by MHD_gtls_server_select_suite(), and MHD_gtls_supported_ciphersuites_sorted().
int MHD_gtls_supported_ciphersuites_sorted | ( | MHD_gtls_session_t | session, | |
cipher_suite_st ** | ciphers | |||
) |
Definition at line 1070 of file gnutls_algorithms.c.
References MHD__gnutls_compare_algo(), MHD__gnutls_qsort(), MHD_gnutls_assert, and MHD_gtls_supported_ciphersuites().
int MHD_gtls_supported_compression_methods | ( | MHD_gtls_session_t | session, | |
uint8_t ** | comp | |||
) |
Definition at line 1178 of file gnutls_algorithms.c.
References GNUTLS_E_MEMORY_ERROR, GNUTLS_E_NO_COMPRESSION_ALGORITHMS, MHD_gtls_session_int::internals, MHD_gnutls_assert, MHD_gnutls_free, MHD_gnutls_malloc, MHD_gtls_compression_get_num(), MIN_PRIVATE_COMP_ALGO, MHD_gtls_internals_st::priorities, MHD_gtls_priority_st::priority, and SUPPORTED_COMPRESSION_METHODS.
Referenced by MHD__gnutls_server_select_comp_method().
enum MHD_GNUTLS_Protocol MHD_gtls_version_get | ( | int | major, | |
int | minor | |||
) |
Definition at line 835 of file gnutls_algorithms.c.
References GNUTLS_VERSION_LOOP.
Referenced by MHD__gnutls_read_client_hello(), MHD_gtls_get_adv_version(), and record_check_version().
int MHD_gtls_version_get_major | ( | enum MHD_GNUTLS_Protocol | ver | ) |
Definition at line 846 of file gnutls_algorithms.c.
References GNUTLS_VERSION_ALG_LOOP.
Referenced by copy_record_version(), MHD__gnutls_gen_rsa_client_kx(), MHD__gnutls_send_server_hello(), MHD_gtls_ciphertext2compressed(), and MHD_gtls_compressed2ciphertext().
int MHD_gtls_version_get_minor | ( | enum MHD_GNUTLS_Protocol | ver | ) |
Definition at line 826 of file gnutls_algorithms.c.
References GNUTLS_VERSION_ALG_LOOP.
Referenced by copy_record_version(), MHD__gnutls_gen_rsa_client_kx(), MHD__gnutls_send_server_hello(), MHD_gtls_ciphertext2compressed(), and MHD_gtls_compressed2ciphertext().
int MHD_gtls_version_is_supported | ( | MHD_gtls_session_t | session, | |
const enum MHD_GNUTLS_Protocol | version | |||
) |
Definition at line 857 of file gnutls_algorithms.c.
References GNUTLS_VERSION_ALG_LOOP, and MHD_gtls_version_priority().
Referenced by MHD_gtls_negotiate_version().
enum MHD_GNUTLS_Protocol MHD_gtls_version_max | ( | MHD_gtls_session_t | session | ) |
Definition at line 803 of file gnutls_algorithms.c.
References MHD_gtls_session_int::internals, MHD_GNUTLS_PROTOCOL_VERSION_UNKNOWN, MHD_gtls_priority_st::num_algorithms, MHD_gtls_internals_st::priorities, MHD_gtls_priority_st::priority, and MHD_gtls_priority_st::protocol.
Referenced by MHD_gtls_negotiate_version().
int MHD_gtls_version_priority | ( | MHD_gtls_session_t | session, | |
enum MHD_GNUTLS_Protocol | version | |||
) |
Definition at line 782 of file gnutls_algorithms.c.
References MHD_gtls_session_int::internals, MHD_gnutls_assert, MHD_gtls_priority_st::num_algorithms, MHD_gtls_internals_st::priorities, MHD_gtls_priority_st::priority, and MHD_gtls_priority_st::protocol.
Referenced by MHD_gtls_version_is_supported().
enum MHD_GNUTLS_PublicKeyAlgorithm MHD_gtls_x509_oid2pk_algorithm | ( | const char * | oid | ) |
Definition at line 1327 of file gnutls_algorithms.c.
References MHD_GNUTLS_PK_UNKNOWN.
Referenced by MHD__gnutls_x509_get_pk_algorithm().