tls clear text write queue. More...
#include "tls_ct_wrq.h"#include "tls_cfg.h"#include "tls_server.h"#include "../../atomic_ops.h"#include "../../mem/shm_mem.h"#include <openssl/err.h>#include <openssl/ssl.h>
Go to the source code of this file.
(queue clear text when SSL_write() cannot write it immediately due to re-keying).
Module: SIP-router TLS support
Definition in file tls_ct_wrq.c.
| static int ssl_flush | ( | void * | tcp_c, | |
| void * | error, | |||
| const void * | buf, | |||
| unsigned | size | |||
| ) | [static] |
| tcp_c | TCP connection containing the SSL context | |
| error | error reason (set on exit) | |
| buf | buffer | |
| size | buffer size |
Definition at line 97 of file tls_ct_wrq.c.
References tls_accept(), and tls_connect().
Referenced by tls_ct_wq_flush().


| int tls_ct_wq_add | ( | tls_ct_q ** | ct_q, | |
| const void * | data, | |||
| unsigned int | size | |||
| ) |
Wrapper over tls_ct_q_add(), besides doing a tls_ct_q_add it also keeps track of queue size and total queued bytes. If the maximum queue size is exceeded => error.
| ct_q | clear text queue | |
| data | data | |
| size | data size |
Definition at line 173 of file tls_ct_wrq.c.
References tls_ct_q_add().
Referenced by tls_encode_f().


| int tls_ct_wq_flush | ( | struct tcp_connection * | c, | |
| tls_ct_q ** | ct_q, | |||
| int * | flags, | |||
| int * | ssl_err | |||
| ) |
Wrapper over tls_ct_q_flush(), besides doing a tls_ct_q_add it also keeps track of queue size and total queued bytes.
| c | TCP connection | |
| ct_q | clear text queue | |
| flags | filled, |
| ssl_err | set to the SSL err (SSL_ERROR_NONE on full success). |
Definition at line 145 of file tls_ct_wrq.c.
References ssl_flush(), and tls_ct_q_flush().
Referenced by tls_read_f().


| unsigned int tls_ct_wq_free | ( | tls_ct_q ** | ct_q | ) |
| ct_q | clear text queue |
Definition at line 199 of file tls_ct_wrq.c.
References tls_ct_q_destroy().
Referenced by tls_h_tcpconn_clean().


| int tls_ct_wq_init | ( | ) |
Definition at line 51 of file tls_ct_wrq.c.
| unsigned int tls_ct_wq_total_bytes | ( | ) |
Definition at line 79 of file tls_ct_wrq.c.
1.7.1