#include "gnutls_int.h"#include "gnutls_algorithms.h"#include "gnutls_errors.h"#include "gnutls_cert.h"#include "common.h"

Go to the source code of this file.
| #define CIPHER_SUITES_COUNT sizeof(MHD_gtls_cs_algorithms)/sizeof(MHD_gtls_cipher_suite_entry)-1 |
Definition at line 465 of file gnutls_algorithms.c.
Referenced by MHD_gtls_supported_ciphersuites().
| #define GNUTLS_ALG_LOOP | ( | a | ) | GNUTLS_LOOP( if(p->id == algorithm) { a; break; } ) |
Definition at line 235 of file gnutls_algorithms.c.
Referenced by MHD__gnutls_cipher_get_key_size(), MHD_gtls_cipher_get_block_size(), MHD_gtls_cipher_get_export_flag(), MHD_gtls_cipher_get_iv_size(), MHD_gtls_cipher_is_block(), and MHD_gtls_cipher_is_ok().
| #define GNUTLS_CIPHER_SUITE_ALG_LOOP | ( | a | ) | GNUTLS_CIPHER_SUITE_LOOP( if( (p->id.suite[0] == suite->suite[0]) && (p->id.suite[1] == suite->suite[1])) { a; break; } ) |
Definition at line 505 of file gnutls_algorithms.c.
Referenced by MHD__gnutls_cipher_suite_is_ok(), 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(), and MHD_gtls_cipher_suite_get_version().
| #define GNUTLS_CIPHER_SUITE_ENTRY | ( | name, | |||
| block_algorithm, | |||||
| kx_algorithm, | |||||
| mac_algorithm, | |||||
| version | ) | { #name, {name}, block_algorithm, kx_algorithm, mac_algorithm, version } |
Definition at line 372 of file gnutls_algorithms.c.
| #define GNUTLS_CIPHER_SUITE_LOOP | ( | b | ) |
Value:
const MHD_gtls_cipher_suite_entry *p; \ for(p = MHD_gtls_cs_algorithms; p->name != NULL; p++) { b ; }
Definition at line 501 of file gnutls_algorithms.c.
| #define GNUTLS_COMPRESSION_ALG_LOOP | ( | a | ) | GNUTLS_COMPRESSION_LOOP( if(p->id == algorithm) { a; break; } ) |
Definition at line 313 of file gnutls_algorithms.c.
Referenced by MHD_gtls_compression_get_comp_level(), MHD_gtls_compression_get_mem_level(), MHD_gtls_compression_get_name(), MHD_gtls_compression_get_num(), MHD_gtls_compression_get_wbits(), and MHD_gtls_compression_is_ok().
| #define GNUTLS_COMPRESSION_ALG_LOOP_NUM | ( | a | ) | GNUTLS_COMPRESSION_LOOP( if(p->num == num) { a; break; } ) |
Definition at line 315 of file gnutls_algorithms.c.
Referenced by MHD_gtls_compression_get_id_from_int().
| #define GNUTLS_COMPRESSION_ENTRY | ( | name, | |||
| id, | |||||
| wb, | |||||
| ml, | |||||
| cl | ) | { #name, name, id, wb, ml, cl} |
Definition at line 287 of file gnutls_algorithms.c.
| #define GNUTLS_COMPRESSION_LOOP | ( | b | ) |
Value:
const MHD_gnutls_compression_entry *p; \ for(p = MHD__gnutls_compression_algorithms; p->name != NULL; p++) { b ; }
Definition at line 310 of file gnutls_algorithms.c.
Referenced by MHD_gtls_compression_get_id().
| #define GNUTLS_DHE_DSS_3DES_EDE_CBC_SHA1 { 0x00, 0x13 } |
Definition at line 437 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_DSS_AES_128_CBC_SHA1 { 0x00, 0x32 } |
Definition at line 446 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_DSS_AES_256_CBC_SHA1 { 0x00, 0x38 } |
Definition at line 445 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_DSS_ARCFOUR_SHA1 { 0x00, 0x66 } |
Definition at line 441 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_DSS_CAMELLIA_128_CBC_SHA1 { 0x00,0x44 } |
Definition at line 449 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_DSS_CAMELLIA_256_CBC_SHA1 { 0x00,0x87 } |
Definition at line 450 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_PSK_SHA_3DES_EDE_CBC_SHA1 { 0x00, 0x8F } |
Definition at line 401 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_PSK_SHA_AES_128_CBC_SHA1 { 0x00, 0x90 } |
Definition at line 402 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_PSK_SHA_AES_256_CBC_SHA1 { 0x00, 0x91 } |
Definition at line 403 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_PSK_SHA_ARCFOUR_SHA1 { 0x00, 0x8E } |
Definition at line 400 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_RSA_3DES_EDE_CBC_SHA1 { 0x00, 0x16 } |
Definition at line 454 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_RSA_AES_128_CBC_SHA1 { 0x00, 0x33 } |
Definition at line 458 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_RSA_AES_256_CBC_SHA1 { 0x00, 0x39 } |
Definition at line 459 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_RSA_CAMELLIA_128_CBC_SHA1 { 0x00,0x45 } |
Definition at line 462 of file gnutls_algorithms.c.
| #define GNUTLS_DHE_RSA_CAMELLIA_256_CBC_SHA1 { 0x00,0x88 } |
Definition at line 463 of file gnutls_algorithms.c.
| #define GNUTLS_HASH_ALG_LOOP | ( | a | ) | GNUTLS_HASH_LOOP( if(p->id == algorithm) { a; break; } ) |
| #define GNUTLS_HASH_LOOP | ( | b | ) |
Value:
const MHD_gnutls_hash_entry *p; \ for(p = MHD_gtls_hash_algorithms; p->name != NULL; p++) { b ; }
Definition at line 279 of file gnutls_algorithms.c.
| #define GNUTLS_KX_ALG_LOOP | ( | a | ) | GNUTLS_KX_LOOP( if(p->algorithm == algorithm) { a; break; } ) |
Definition at line 368 of file gnutls_algorithms.c.
Referenced by MHD_gtls_kx_auth_struct(), MHD_gtls_kx_is_ok(), MHD_gtls_kx_needs_dh_params(), and MHD_gtls_kx_needs_rsa_params().
| #define GNUTLS_KX_LOOP | ( | b | ) |
Value:
const MHD_gtls_kx_algo_entry_t *p; \ for(p = MHD_gtls_kx_algorithms; p->name != NULL; p++) { b ; }
Definition at line 364 of file gnutls_algorithms.c.
| #define GNUTLS_KX_MAP_ALG_LOOP_CLIENT | ( | a | ) | GNUTLS_KX_MAP_LOOP( if(p->client_type == type) { a; break; }) |
Definition at line 63 of file gnutls_algorithms.c.
| #define GNUTLS_KX_MAP_ALG_LOOP_SERVER | ( | a | ) | GNUTLS_KX_MAP_LOOP( if(p->server_type == type) { a; break; }) |
Definition at line 60 of file gnutls_algorithms.c.
| #define GNUTLS_KX_MAP_LOOP | ( | b | ) |
Value:
const MHD_gnutls_cred_map *p; \ for(p = MHD_gtls_cred_mappings; p->algorithm != 0; p++) { b ; }
Definition at line 56 of file gnutls_algorithms.c.
Referenced by MHD_gtls_map_kx_get_cred().
| #define GNUTLS_LOOP | ( | b | ) |
Value:
const MHD_gnutls_cipher_entry *p; \ for(p = MHD_gtls_algorithms; p->name != NULL; p++) { b ; }
Definition at line 231 of file gnutls_algorithms.c.
| #define GNUTLS_PK_MAP_ALG_LOOP | ( | a | ) | GNUTLS_PK_MAP_LOOP( if(p->kx_algorithm == kx_algorithm) { a; break; }) |
Definition at line 101 of file gnutls_algorithms.c.
Referenced by MHD_gtls_kx_encipher_type(), and MHD_gtls_map_pk_get_pk().
| #define GNUTLS_PK_MAP_LOOP | ( | b | ) |
Value:
const MHD_gnutls_pk_map *p; \ for(p = MHD_gtls_pk_mappings; p->kx_algorithm != 0; p++) { b }
Definition at line 97 of file gnutls_algorithms.c.
| #define GNUTLS_PSK_SHA_3DES_EDE_CBC_SHA1 { 0x00, 0x8B } |
Definition at line 396 of file gnutls_algorithms.c.
| #define GNUTLS_PSK_SHA_AES_128_CBC_SHA1 { 0x00, 0x8C } |
Definition at line 397 of file gnutls_algorithms.c.
| #define GNUTLS_PSK_SHA_AES_256_CBC_SHA1 { 0x00, 0x8D } |
Definition at line 398 of file gnutls_algorithms.c.
| #define GNUTLS_PSK_SHA_ARCFOUR_SHA1 { 0x00, 0x8A } |
Definition at line 395 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_3DES_EDE_CBC_SHA1 { 0x00, 0x0A } |
Definition at line 423 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_AES_128_CBC_SHA1 { 0x00, 0x2F } |
Definition at line 427 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_AES_256_CBC_SHA1 { 0x00, 0x35 } |
Definition at line 428 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_ARCFOUR_MD5 { 0x00, 0x04 } |
Definition at line 422 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_ARCFOUR_SHA1 { 0x00, 0x05 } |
Definition at line 421 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_CAMELLIA_128_CBC_SHA1 { 0x00,0x41 } |
Definition at line 431 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_CAMELLIA_256_CBC_SHA1 { 0x00,0x84 } |
Definition at line 432 of file gnutls_algorithms.c.
| #define GNUTLS_RSA_NULL_MD5 { 0x00, 0x01 } |
Definition at line 390 of file gnutls_algorithms.c.
| #define GNUTLS_SIGN_ALG_LOOP | ( | a | ) | GNUTLS_SIGN_LOOP( if(p->id && p->id == sign) { a; break; } ) |
Definition at line 1298 of file gnutls_algorithms.c.
| #define GNUTLS_SIGN_LOOP | ( | b | ) |
Value:
do { \ const MHD_gnutls_sign_entry *p; \ for(p = MHD_gtls_sign_algorithms; p->name != NULL; p++) { b ; } \ } while (0)
Definition at line 1292 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_3DES_EDE_CBC_SHA1 { 0xC0, 0x1A } |
Definition at line 407 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_AES_128_CBC_SHA1 { 0xC0, 0x1D } |
Definition at line 411 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_AES_256_CBC_SHA1 { 0xC0, 0x20 } |
Definition at line 415 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_DSS_3DES_EDE_CBC_SHA1 { 0xC0, 0x1C } |
Definition at line 409 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_DSS_AES_128_CBC_SHA1 { 0xC0, 0x1F } |
Definition at line 413 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_DSS_AES_256_CBC_SHA1 { 0xC0, 0x22 } |
Definition at line 417 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_RSA_3DES_EDE_CBC_SHA1 { 0xC0, 0x1B } |
Definition at line 408 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_RSA_AES_128_CBC_SHA1 { 0xC0, 0x1E } |
Definition at line 412 of file gnutls_algorithms.c.
| #define GNUTLS_SRP_SHA_RSA_AES_256_CBC_SHA1 { 0xC0, 0x21 } |
Definition at line 416 of file gnutls_algorithms.c.
| #define GNUTLS_VERSION_ALG_LOOP | ( | a | ) | GNUTLS_VERSION_LOOP( if(p->id == version) { a; break; }) |
Definition at line 156 of file gnutls_algorithms.c.
Referenced by MHD_gtls_version_get_major(), MHD_gtls_version_get_minor(), and MHD_gtls_version_is_supported().
| #define GNUTLS_VERSION_LOOP | ( | b | ) |
Value:
const MHD_gnutls_version_entry *p; \ for(p = MHD_gtls_sup_versions; p->name != NULL; p++) { b ; }
Definition at line 152 of file gnutls_algorithms.c.
Referenced by MHD_gtls_version_get().
| #define MAX_COMP_METHODS 5 |
Definition at line 290 of file gnutls_algorithms.c.
| #define MAX_ELEM_SIZE 4 |
| #define MIN_PRIVATE_COMP_ALGO 0xEF |
Definition at line 1172 of file gnutls_algorithms.c.
Referenced by MHD_gtls_supported_compression_methods().
| #define SUPPORTED_COMPRESSION_METHODS session->internals.priorities.compression.num_algorithms |
Definition at line 1176 of file gnutls_algorithms.c.
Referenced by MHD_gtls_supported_compression_methods().
| #define SWAP | ( | x, | |||
| y | ) |
Value:
memcpy(tmp,x,size); \
memcpy(x,y,size); \
memcpy(y,tmp,size);
Definition at line 953 of file gnutls_algorithms.c.
Referenced by MHD__gnutls_partition().
| typedef struct MHD_gnutls_cipher_entry MHD_gnutls_cipher_entry |
Definition at line 169 of file gnutls_algorithms.c.
| typedef struct MHD_gnutls_hash_entry MHD_gnutls_hash_entry |
Definition at line 245 of file gnutls_algorithms.c.
| typedef struct MHD_gnutls_pk_entry MHD_gnutls_pk_entry |
Definition at line 1309 of file gnutls_algorithms.c.
| typedef struct MHD_gnutls_sign_entry MHD_gnutls_sign_entry |
Definition at line 1257 of file gnutls_algorithms.c.
| typedef struct MHD_gtls_kx_algo_entry MHD_gtls_kx_algo_entry_t |
| size_t MHD__gnutls_cipher_get_key_size | ( | enum MHD_GNUTLS_CipherAlgorithm | algorithm | ) |
MHD__gnutls_cipher_get_key_size - Returns the length of the cipher's key size : is an encryption algorithm
Returns: length (in bytes) of the given cipher's key size, o 0 if the given cipher is invalid.
Definition at line 689 of file gnutls_algorithms.c.
References GNUTLS_ALG_LOOP.
Referenced by MHD__gnutls_set_read_keys(), and MHD__gnutls_set_write_keys().

| static int MHD__gnutls_cipher_suite_is_ok | ( | cipher_suite_st * | suite | ) | [inline, static] |
| static int MHD__gnutls_compare_algo | ( | MHD_gtls_session_t | session, | |
| const void * | i_A1, | |||
| const void * | i_A2 | |||
| ) | [static] |
Definition at line 1032 of file gnutls_algorithms.c.
References 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_kx_priority(), and MHD_gtls_mac_priority().
Referenced by MHD_gtls_supported_ciphersuites_sorted().


| static int MHD__gnutls_partition | ( | MHD_gtls_session_t | session, | |
| void * | _base, | |||
| size_t | nmemb, | |||
| size_t | size, | |||
| int(*)(MHD_gtls_session_t, const void *, const void *) | compar | |||
| ) | [inline, static] |
Definition at line 959 of file gnutls_algorithms.c.
References MAX_ELEM_SIZE, and SWAP.
Referenced by MHD__gnutls_qsort().

| static void MHD__gnutls_qsort | ( | MHD_gtls_session_t | session, | |
| void * | _base, | |||
| size_t | nmemb, | |||
| size_t | size, | |||
| int(*)(MHD_gtls_session_t, const void *, const void *) | compar | |||
| ) | [static] |
Definition at line 1007 of file gnutls_algorithms.c.
References MHD__gnutls_partition().
Referenced by MHD_gtls_supported_ciphersuites_sorted().


| 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().

| 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().

| 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 * | suite | ) |
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 * | suite | ) |
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 * | suite | ) |
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 * | suite | ) |
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().

| enum MHD_GNUTLS_Protocol MHD_gtls_cipher_suite_get_version | ( | const cipher_suite_st * | suite | ) |
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 | ) |
| enum MHD_GNUTLS_CompressionMethod MHD_gtls_compression_get_id | ( | const char * | name | ) |
MHD_gtls_compression_get_id - Returns the gnutls id of the specified in string algorithm : is a compression method name
The names are compared in a case insensitive way.
Returns: an id of the specified in a string compression method, or GNUTLS_COMP_UNKNOWN on error.
Definition at line 566 of file gnutls_algorithms.c.
References GNUTLS_COMPRESSION_LOOP, and MHD_GNUTLS_COMP_UNKNOWN.
| 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 | ) |
| const char* MHD_gtls_compression_get_name | ( | enum MHD_GNUTLS_CompressionMethod | algorithm | ) |
MHD__gnutls_compression_get_name - Returns a string with the name of the specified compression algorithm : is a Compression algorithm
Returns: a pointer to a string that contains the name of the specified compression algorithm, or NULL.
Definition at line 545 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 | ) |
| 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 | kx_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().

| 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().

| 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().

| 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_alloca, 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 | version | ) |
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 | version | ) |
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().

| const int MHD__gnutls_comp_algorithms_size = MAX_COMP_METHODS |
Definition at line 291 of file gnutls_algorithms.c.
| MHD_gnutls_compression_entry MHD__gnutls_compression_algorithms[MAX_COMP_METHODS] |
Initial value:
{
GNUTLS_COMPRESSION_ENTRY (MHD_GNUTLS_COMP_NULL, 0x00, 0, 0, 0),
{
0, 0, 0, 0, 0, 0}
}
Definition at line 296 of file gnutls_algorithms.c.
const MHD_gnutls_cipher_entry MHD_gtls_algorithms[] [static] |
Definition at line 176 of file gnutls_algorithms.c.
const MHD_gnutls_cred_map MHD_gtls_cred_mappings[] [static] |
Initial value:
{
{MHD_GNUTLS_KX_RSA,
MHD_GNUTLS_CRD_CERTIFICATE,
MHD_GNUTLS_CRD_CERTIFICATE},
{MHD_GNUTLS_KX_RSA_EXPORT,
MHD_GNUTLS_CRD_CERTIFICATE,
MHD_GNUTLS_CRD_CERTIFICATE},
{0,
0,
0}
}
Definition at line 44 of file gnutls_algorithms.c.
const MHD_gtls_cipher_suite_entry MHD_gtls_cs_algorithms[] [static] |
Definition at line 467 of file gnutls_algorithms.c.
Referenced by MHD_gtls_supported_ciphersuites().
Definition at line 63 of file auth_dhe.c.
Definition at line 46 of file auth_dhe.c.
const MHD_gnutls_hash_entry MHD_gtls_hash_algorithms[] [static] |
Initial value:
{
{"SHA1",
HASH_OID_SHA1,
MHD_GNUTLS_MAC_SHA1,
20},
{"MD5",
HASH_OID_MD5,
MHD_GNUTLS_MAC_MD5,
16},
{"SHA256",
HASH_OID_SHA256,
MHD_GNUTLS_MAC_SHA256,
32},
{"NULL",
NULL,
MHD_GNUTLS_MAC_NULL,
0},
{0,
0,
0,
0}
}
Definition at line 247 of file gnutls_algorithms.c.
const MHD_gtls_kx_algo_entry_t MHD_gtls_kx_algorithms[] [static] |
Initial value:
{
{"RSA",
MHD_GNUTLS_KX_RSA,
&MHD_gtls_rsa_auth_struct,
0,
0},
{"RSA-EXPORT",
MHD_GNUTLS_KX_RSA_EXPORT,
&MHD_rsa_export_auth_struct,
0,
1 },
{0,
0,
0,
0,
0}
}
Definition at line 338 of file gnutls_algorithms.c.
const MHD_gnutls_pk_entry MHD_gtls_pk_algorithms[] [static] |
Initial value:
{
{"RSA",
PK_PKIX1_RSA_OID,
MHD_GNUTLS_PK_RSA},
{"GOST R 34.10-2001",
PK_GOST_R3410_2001_OID,
0},
{"GOST R 34.10-94",
PK_GOST_R3410_94_OID,
0},
{0,
0,
0}
}
Definition at line 1311 of file gnutls_algorithms.c.
const MHD_gnutls_pk_map MHD_gtls_pk_mappings[] [static] |
Initial value:
{
{MHD_GNUTLS_KX_RSA,
MHD_GNUTLS_PK_RSA,
CIPHER_ENCRYPT},
{MHD_GNUTLS_KX_RSA_EXPORT,
MHD_GNUTLS_PK_RSA,
CIPHER_SIGN},
{0,
0,
0}
}
Definition at line 85 of file gnutls_algorithms.c.
Definition at line 47 of file auth_rsa.c.
const MHD_gnutls_sign_entry MHD_gtls_sign_algorithms[] [static] |
Definition at line 1259 of file gnutls_algorithms.c.
const MHD_gnutls_version_entry MHD_gtls_sup_versions[] [static] |
Initial value:
{
{"SSL3.0",
MHD_GNUTLS_PROTOCOL_SSL3,
3,
0,
1},
{"TLS1.0",
MHD_GNUTLS_PROTOCOL_TLS1_0,
3,
1,
1},
{"TLS1.1",
MHD_GNUTLS_PROTOCOL_TLS1_1,
3,
2,
1},
{"TLS1.2",
MHD_GNUTLS_PROTOCOL_TLS1_2,
3,
3,
1},
{0,
0,
0,
0,
0}
}
Definition at line 115 of file gnutls_algorithms.c.
enum MHD_GNUTLS_CertificateType MHD_gtls_supported_certificate_types[] [static] |
enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_supported_ciphers[] [static] |
Initial value:
{ MHD_GNUTLS_CIPHER_AES_256_CBC,
MHD_GNUTLS_CIPHER_AES_128_CBC,
MHD_GNUTLS_CIPHER_3DES_CBC,
MHD_GNUTLS_CIPHER_ARCFOUR_128,
MHD_GNUTLS_CIPHER_NULL,
0
}
Definition at line 222 of file gnutls_algorithms.c.
enum MHD_GNUTLS_CompressionMethod MHD_gtls_supported_compressions[] [static] |
enum MHD_GNUTLS_KeyExchangeAlgorithm MHD_gtls_supported_kxs[] [static] |
Initial value:
Definition at line 357 of file gnutls_algorithms.c.
enum MHD_GNUTLS_HashAlgorithm MHD_gtls_supported_macs[] [static] |
Initial value:
Definition at line 271 of file gnutls_algorithms.c.
enum MHD_GNUTLS_Protocol MHD_gtls_supported_protocols[] [static] |
Initial value:
{ MHD_GNUTLS_PROTOCOL_SSL3,
MHD_GNUTLS_PROTOCOL_TLS1_0,
MHD_GNUTLS_PROTOCOL_TLS1_1,
MHD_GNUTLS_PROTOCOL_TLS1_2,
0
}
Definition at line 144 of file gnutls_algorithms.c.
Definition at line 50 of file auth_rsa_export.c.
1.5.7.1