tls clear text write queue. More...
#include "tls_ct_q.h"#include "tls_server.h"#include "../../tcp_conn.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.h.
| 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