Dillo v3.1.1-98-g318d1f14
|
#include "../url.h"
Go to the source code of this file.
Macros | |
#define | TLS_CONNECT_NEVER -1 |
#define | TLS_CONNECT_NOT_YET 0 |
#define | TLS_CONNECT_READY 1 |
Functions | |
void | a_Tls_init (void) |
Initialize TLS library. | |
int | a_Tls_certificate_is_clean (const DilloUrl *url) |
Did everything seem proper with the certificate – no warnings to click through?. | |
int | a_Tls_connect_ready (const DilloUrl *url) |
The purpose here is to permit a single initial connection to a server. | |
void | a_Tls_reset_server_state (const DilloUrl *url) |
void | a_Tls_connect (int fd, const DilloUrl *url) |
void * | a_Tls_connection (int fd) |
Return TLS connection information for a given file descriptor, or NULL if no TLS connection was found. | |
void | a_Tls_freeall (void) |
Clean up the TLS library. | |
void | a_Tls_close_by_fd (int fd) |
int | a_Tls_read (void *conn, void *buf, size_t len) |
int | a_Tls_write (void *conn, void *buf, size_t len) |
int a_Tls_certificate_is_clean | ( | const DilloUrl * | url | ) |
Did everything seem proper with the certificate – no warnings to click through?.
Definition at line 85 of file tls.c.
References a_Tls_mbedtls_certificate_is_clean(), and a_Tls_openssl_certificate_is_clean().
Referenced by a_Hsts_set().
void a_Tls_close_by_fd | ( | int | fd | ) |
Definition at line 141 of file tls.c.
References a_Tls_mbedtls_close_by_fd(), and a_Tls_openssl_close_by_fd().
Referenced by Http_socket_free().
void a_Tls_connect | ( | int | fd, |
const DilloUrl * | url | ||
) |
Definition at line 128 of file tls.c.
References a_Tls_mbedtls_connect(), and a_Tls_openssl_connect().
Referenced by a_Http_ccc(), and Http_connect_tls().
int a_Tls_connect_ready | ( | const DilloUrl * | url | ) |
The purpose here is to permit a single initial connection to a server.
Once we have the certificate, know whether we like it – and whether the user accepts it – HTTP can run through queued sockets as normal.
Return: TLS_CONNECT_READY or TLS_CONNECT_NOT_YET or TLS_CONNECT_NEVER.
Definition at line 68 of file tls.c.
References a_Tls_mbedtls_connect_ready(), a_Tls_openssl_connect_ready(), and TLS_CONNECT_NEVER.
Referenced by Http_connect_queued_sockets().
void * a_Tls_connection | ( | int | fd | ) |
Return TLS connection information for a given file descriptor, or NULL if no TLS connection was found.
Definition at line 48 of file tls.c.
References a_Tls_mbedtls_connection(), and a_Tls_openssl_connection().
Referenced by IO_read(), and IO_write().
void a_Tls_freeall | ( | void | ) |
Clean up the TLS library.
Definition at line 101 of file tls.c.
References a_Tls_mbedtls_freeall(), and a_Tls_openssl_freeall().
Referenced by main().
void a_Tls_init | ( | void | ) |
Initialize TLS library.
Definition at line 31 of file tls.c.
References a_Tls_mbedtls_init(), a_Tls_openssl_init(), and MSG.
Referenced by main().
int a_Tls_read | ( | void * | conn, |
void * | buf, | ||
size_t | len | ||
) |
Definition at line 154 of file tls.c.
References a_Tls_mbedtls_read(), and a_Tls_openssl_read().
Referenced by IO_read().
void a_Tls_reset_server_state | ( | const DilloUrl * | url | ) |
Definition at line 115 of file tls.c.
References a_Tls_mbedtls_reset_server_state(), and a_Tls_openssl_reset_server_state().
Referenced by Http_socket_free().
int a_Tls_write | ( | void * | conn, |
void * | buf, | ||
size_t | len | ||
) |
Definition at line 167 of file tls.c.
References a_Tls_mbedtls_write(), and a_Tls_openssl_write().
Referenced by IO_write().