gnutls_algorithms.h File Reference

#include "gnutls_auth.h"

Include dependency graph for gnutls_algorithms.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MHD_gtls_compression_entry

Typedefs

typedef struct
MHD_gtls_compression_entry 
MHD_gnutls_compression_entry

Enumerations

enum  encipher_type { CIPHER_ENCRYPT = 0, CIPHER_SIGN = 1, CIPHER_IGN }

Functions

enum MHD_GNUTLS_Protocol MHD_gtls_version_max (MHD_gtls_session_t session)
int MHD_gtls_version_priority (MHD_gtls_session_t session, enum MHD_GNUTLS_Protocol version)
int MHD_gtls_version_is_supported (MHD_gtls_session_t session, const enum MHD_GNUTLS_Protocol version)
int MHD_gtls_version_get_major (enum MHD_GNUTLS_Protocol ver)
int MHD_gtls_version_get_minor (enum MHD_GNUTLS_Protocol ver)
enum MHD_GNUTLS_Protocol MHD_gtls_version_get (int major, int minor)
int MHD_gnutls_mac_is_ok (enum MHD_GNUTLS_HashAlgorithm algorithm)
int MHD_gtls_supported_ciphersuites (MHD_gtls_session_t session, cipher_suite_st **ciphers)
int MHD_gtls_supported_ciphersuites_sorted (MHD_gtls_session_t session, cipher_suite_st **ciphers)
int MHD_gtls_supported_compression_methods (MHD_gtls_session_t session, uint8_t **comp)
const char * MHD_gtls_cipher_suite_get_name (cipher_suite_st *algorithm)
enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_cipher_suite_get_cipher_algo (const cipher_suite_st *algorithm)
enum
MHD_GNUTLS_KeyExchangeAlgorithm 
MHD_gtls_cipher_suite_get_kx_algo (const cipher_suite_st *algorithm)
enum MHD_GNUTLS_HashAlgorithm MHD_gtls_cipher_suite_get_mac_algo (const cipher_suite_st *algorithm)
enum MHD_GNUTLS_Protocol MHD_gtls_cipher_suite_get_version (const cipher_suite_st *algorithm)
cipher_suite_st MHD_gtls_cipher_suite_get_suite_name (cipher_suite_st *algorithm)
int MHD_gtls_cipher_get_block_size (enum MHD_GNUTLS_CipherAlgorithm algorithm)
int MHD_gtls_cipher_is_block (enum MHD_GNUTLS_CipherAlgorithm algorithm)
int MHD_gtls_cipher_is_ok (enum MHD_GNUTLS_CipherAlgorithm algorithm)
int MHD_gtls_cipher_get_iv_size (enum MHD_GNUTLS_CipherAlgorithm algorithm)
int MHD_gtls_cipher_get_export_flag (enum MHD_GNUTLS_CipherAlgorithm algorithm)
int MHD_gtls_kx_needs_dh_params (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm)
int MHD_gtls_kx_needs_rsa_params (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm)
MHD_gtls_mod_auth_stMHD_gtls_kx_auth_struct (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm)
int MHD_gtls_kx_is_ok (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm)
int MHD_gtls_compression_is_ok (enum MHD_GNUTLS_CompressionMethod algorithm)
int MHD_gtls_compression_get_num (enum MHD_GNUTLS_CompressionMethod algorithm)
enum MHD_GNUTLS_CompressionMethod MHD_gtls_compression_get_id_from_int (int num)
int MHD_gtls_compression_get_mem_level (enum MHD_GNUTLS_CompressionMethod algorithm)
int MHD_gtls_compression_get_comp_level (enum MHD_GNUTLS_CompressionMethod algorithm)
int MHD_gtls_compression_get_wbits (enum MHD_GNUTLS_CompressionMethod algorithm)
enum MHD_GNUTLS_CredentialsType MHD_gtls_map_kx_get_cred (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm, int server)
enum MHD_GNUTLS_PublicKeyAlgorithm MHD_gtls_map_pk_get_pk (enum MHD_GNUTLS_KeyExchangeAlgorithm kx_algorithm)
enum MHD_GNUTLS_PublicKeyAlgorithm MHD_gtls_x509_oid2pk_algorithm (const char *oid)
enum encipher_type MHD_gtls_kx_encipher_type (enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm)
int MHD_gtls_mac_priority (MHD_gtls_session_t session, enum MHD_GNUTLS_HashAlgorithm algorithm)
int MHD_gtls_cipher_priority (MHD_gtls_session_t session, enum MHD_GNUTLS_CipherAlgorithm algorithm)
int MHD_gtls_kx_priority (MHD_gtls_session_t session, enum MHD_GNUTLS_KeyExchangeAlgorithm algorithm)
enum MHD_GNUTLS_HashAlgorithm MHD_gtls_mac_get_id (const char *name)
enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_cipher_get_id (const char *name)
enum
MHD_GNUTLS_KeyExchangeAlgorithm 
MHD_gtls_kx_get_id (const char *name)
enum MHD_GNUTLS_Protocol MHD_gtls_protocol_get_id (const char *name)
enum MHD_GNUTLS_CertificateType MHD_gtls_certificate_type_get_id (const char *name)


Typedef Documentation

Definition at line 130 of file gnutls_algorithms.h.


Enumeration Type Documentation

Enumerator:
CIPHER_ENCRYPT 
CIPHER_SIGN 
CIPHER_IGN 

Definition at line 112 of file gnutls_algorithms.h.


Function Documentation

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

int MHD_gtls_cipher_priority ( MHD_gtls_session_t  session,
enum MHD_GNUTLS_CipherAlgorithm  algorithm 
)

enum MHD_GNUTLS_CipherAlgorithm MHD_gtls_cipher_suite_get_cipher_algo ( const cipher_suite_st algorithm  ) 

enum MHD_GNUTLS_KeyExchangeAlgorithm MHD_gtls_cipher_suite_get_kx_algo ( const cipher_suite_st algorithm  ) 

enum MHD_GNUTLS_HashAlgorithm MHD_gtls_cipher_suite_get_mac_algo ( const cipher_suite_st algorithm  ) 

const char* MHD_gtls_cipher_suite_get_name ( cipher_suite_st algorithm  ) 

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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  ) 

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

int MHD_gtls_kx_priority ( MHD_gtls_session_t  session,
enum MHD_GNUTLS_KeyExchangeAlgorithm  algorithm 
)

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 
)

enum MHD_GNUTLS_CredentialsType MHD_gtls_map_kx_get_cred ( enum MHD_GNUTLS_KeyExchangeAlgorithm  algorithm,
int  server 
)

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

Here is the caller graph for this function:

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 
)

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

Here is the call graph for this function:

int MHD_gtls_supported_compression_methods ( MHD_gtls_session_t  session,
uint8_t **  comp 
)

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

Here is the caller graph for this function:

int MHD_gtls_version_get_major ( enum MHD_GNUTLS_Protocol  ver  ) 

int MHD_gtls_version_get_minor ( enum MHD_GNUTLS_Protocol  ver  ) 

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

Here is the call graph for this function:

Here is the caller graph for this function:

enum MHD_GNUTLS_Protocol MHD_gtls_version_max ( MHD_gtls_session_t  session  ) 

int MHD_gtls_version_priority ( MHD_gtls_session_t  session,
enum MHD_GNUTLS_Protocol  version 
)

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

Here is the caller graph for this function:


Generated on Sun Jul 26 17:21:58 2009 for GNU libmicrohttpd by  doxygen 1.5.9