This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | TLS_CAPABILITY_IA 0x0001 |
Enumerations | |
enum | { TLS_SET_PARAMS_ENGINE_PRV_VERIFY_FAILED = -3, TLS_SET_PARAMS_ENGINE_PRV_INIT_FAILED = -2 } |
enum | { TLS_CIPHER_NONE, TLS_CIPHER_RC4_SHA, TLS_CIPHER_AES128_SHA, TLS_CIPHER_RSA_DHE_AES128_SHA, TLS_CIPHER_ANON_DH_AES128_SHA } |
Functions | |
void * | tls_init (const struct tls_config *conf) |
Initialize TLS library. | |
void | tls_deinit (void *tls_ctx) |
Deinitialize TLS library. | |
int | tls_get_errors (void *tls_ctx) |
Process pending errors. | |
tls_connection * | tls_connection_init (void *tls_ctx) |
Initialize a new TLS connection. | |
void | tls_connection_deinit (void *tls_ctx, struct tls_connection *conn) |
Free TLS connection data. | |
int | tls_connection_established (void *tls_ctx, struct tls_connection *conn) |
Has the TLS connection been completed? | |
int | tls_connection_shutdown (void *tls_ctx, struct tls_connection *conn) |
Shutdown TLS connection. | |
int | tls_connection_set_params (void *tls_ctx, struct tls_connection *conn, const struct tls_connection_params *params) |
Set TLS connection parameters. | |
int | tls_global_set_params (void *tls_ctx, const struct tls_connection_params *params) |
Set TLS parameters for all TLS connection. | |
int | tls_global_set_verify (void *tls_ctx, int check_crl) |
Set global certificate verification options. | |
int | tls_connection_set_verify (void *tls_ctx, struct tls_connection *conn, int verify_peer) |
Set certificate verification options. | |
int | tls_connection_set_ia (void *tls_ctx, struct tls_connection *conn, int tls_ia) |
Set TLS/IA parameters. | |
int | tls_connection_get_keys (void *tls_ctx, struct tls_connection *conn, struct tls_keys *keys) |
Get master key and random data from TLS connection. | |
int | tls_connection_prf (void *tls_ctx, struct tls_connection *conn, const char *label, int server_random_first, u8 *out, size_t out_len) |
Use TLS-PRF to derive keying material. | |
u8 * | tls_connection_handshake (void *tls_ctx, struct tls_connection *conn, const u8 *in_data, size_t in_len, size_t *out_len, u8 **appl_data, size_t *appl_data_len) |
Process TLS handshake (client side). | |
u8 * | tls_connection_server_handshake (void *tls_ctx, struct tls_connection *conn, const u8 *in_data, size_t in_len, size_t *out_len) |
Process TLS handshake (server side). | |
int | tls_connection_encrypt (void *tls_ctx, struct tls_connection *conn, const u8 *in_data, size_t in_len, u8 *out_data, size_t out_len) |
Encrypt data into TLS tunnel. | |
int | tls_connection_decrypt (void *tls_ctx, struct tls_connection *conn, const u8 *in_data, size_t in_len, u8 *out_data, size_t out_len) |
Decrypt data from TLS tunnel. | |
int | tls_connection_resumed (void *tls_ctx, struct tls_connection *conn) |
Was session resumption used. | |
int | tls_connection_set_master_key (void *tls_ctx, struct tls_connection *conn, const u8 *key, size_t key_len) |
Configure master secret for TLS connection. | |
int | tls_connection_set_cipher_list (void *tls_ctx, struct tls_connection *conn, u8 *ciphers) |
Configure acceptable cipher suites. | |
int | tls_get_cipher (void *tls_ctx, struct tls_connection *conn, char *buf, size_t buflen) |
Get current cipher name. | |
int | tls_connection_enable_workaround (void *tls_ctx, struct tls_connection *conn) |
Enable TLS workaround options. | |
int | tls_connection_client_hello_ext (void *tls_ctx, struct tls_connection *conn, int ext_type, const u8 *data, size_t data_len) |
Set TLS extension for ClientHello. | |
int | tls_connection_get_failed (void *tls_ctx, struct tls_connection *conn) |
Get connection failure status. | |
int | tls_connection_get_read_alerts (void *tls_ctx, struct tls_connection *conn) |
Get connection read alert status. | |
int | tls_connection_get_write_alerts (void *tls_ctx, struct tls_connection *conn) |
Get connection write alert status. | |
int | tls_connection_get_keyblock_size (void *tls_ctx, struct tls_connection *conn) |
Get TLS key_block size. | |
unsigned int | tls_capabilities (void *tls_ctx) |
Get supported TLS capabilities. | |
int | tls_connection_ia_send_phase_finished (void *tls_ctx, struct tls_connection *conn, int final, u8 *out_data, size_t out_len) |
Send a TLS/IA PhaseFinished message. | |
int | tls_connection_ia_final_phase_finished (void *tls_ctx, struct tls_connection *conn) |
Has final phase been completed. | |
int | tls_connection_ia_permute_inner_secret (void *tls_ctx, struct tls_connection *conn, const u8 *key, size_t key_len) |
Permute TLS/IA inner secret. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file tls.h.
|
Get supported TLS capabilities.
Definition at line 1231 of file tls_gnutls.c. |
|
Set TLS extension for ClientHello.
Definition at line 1190 of file tls_gnutls.c. |
|
Decrypt data from TLS tunnel.
Definition at line 1067 of file tls_gnutls.c. |
|
Free TLS connection data.
Definition at line 361 of file tls_gnutls.c. |
|
Enable TLS workaround options.
Definition at line 1182 of file tls_gnutls.c. |
|
Encrypt data into TLS tunnel.
Definition at line 1038 of file tls_gnutls.c. |
|
Has the TLS connection been completed?
Definition at line 388 of file tls_gnutls.c. |
|
Get connection failure status.
Definition at line 1199 of file tls_gnutls.c. |
|
Get TLS key_block size.
Definition at line 1223 of file tls_gnutls.c. |
|
Get master key and random data from TLS connection.
Definition at line 790 of file tls_gnutls.c. |
|
Get connection read alert status.
Definition at line 1207 of file tls_gnutls.c. |
|
Get connection write alert status.
Definition at line 1215 of file tls_gnutls.c. |
|
Process TLS handshake (client side).
This function is used during TLS handshake. The first call is done with in_data == NULL and the library is expected to return ClientHello packet. This packet is then send to the server and a response from server is given to TLS library by calling this function again with in_data pointing to the TLS message from the server. If the TLS handshake fails, this function may return NULL. However, if the TLS library has a TLS alert to send out, that should be returned as the output data. In this case, tls_connection_get_failed() must return failure (> 0). tls_connection_established() should return 1 once the TLS handshake has been completed successfully. Definition at line 930 of file tls_gnutls.c. Here is the call graph for this function: |
|
Has final phase been completed.
Definition at line 1328 of file tls_gnutls.c. |
|
Permute TLS/IA inner secret.
Definition at line 1338 of file tls_gnutls.c. |
|
Send a TLS/IA PhaseFinished message.
Definition at line 1280 of file tls_gnutls.c. |
|
Initialize a new TLS connection.
Definition at line 325 of file tls_gnutls.c. Here is the call graph for this function: |
|
Use TLS-PRF to derive keying material.
Definition at line 827 of file tls_gnutls.c. |
|
Was session resumption used.
Definition at line 1149 of file tls_gnutls.c. |
|
Process TLS handshake (server side).
Definition at line 1028 of file tls_gnutls.c. Here is the call graph for this function: |
|
Configure acceptable cipher suites.
Definition at line 1165 of file tls_gnutls.c. Here is the call graph for this function: |
|
Set TLS/IA parameters.
Definition at line 1243 of file tls_gnutls.c. |
|
Configure master secret for TLS connection.
Definition at line 1157 of file tls_gnutls.c. |
|
Set TLS connection parameters.
Definition at line 548 of file tls_gnutls.c. Here is the call graph for this function: |
|
Set certificate verification options.
Definition at line 775 of file tls_gnutls.c. |
|
Shutdown TLS connection.
Definition at line 394 of file tls_gnutls.c. |
|
Deinitialize TLS library.
Definition at line 215 of file tls_gnutls.c. |
|
Get current cipher name.
Definition at line 1173 of file tls_gnutls.c. |
|
Process pending errors.
Definition at line 231 of file tls_gnutls.c. Here is the call graph for this function: |
|
Set TLS parameters for all TLS connection.
Definition at line 674 of file tls_gnutls.c. Here is the call graph for this function: |
|
Set global certificate verification options.
Definition at line 768 of file tls_gnutls.c. |
|
Initialize TLS library.
Definition at line 163 of file tls_gnutls.c. Here is the call graph for this function: |