128 void server_ssl_init(
void);
215 #define conn_register(conn, fdset, callback, data) \ 216 conn_register_real(conn, fdset, callback, data, NULL) 291 #include <openssl/x509.h> 292 #include <openssl/ssl.h> 302 void openssl_init_locks(
void);
303 void openssl_shutdown_locks(
void);
309 void conn_init_ssl(
void);
310 void conn_shutdown_ssl(
void);
311 void server_init_ssl(
void);
312 void server_shutdown_ssl(
void);
319 void conn_use_global_client_certkey_file(
Octstr *certkeyfile);
326 void conn_use_global_server_certkey_file(
Octstr *certfile,
Octstr *keyfile);
331 void conn_use_global_trusted_ca_file(
Octstr *ssl_trusted_ca_file);
338 void conn_use_global_client_cipher_list(
Octstr *cipher);
339 void conn_use_global_server_cipher_list(
Octstr *cipher);
354 X509 *conn_get_peer_certificate(
Connection *conn);
int conn_is_connected(Connection *conn)
int conn_wait(Connection *conn, double seconds)
void conn_set_output_buffering(Connection *conn, unsigned int size)
conn_callback_t * callback
static void startmark(unsigned char *p, long number)
void conn_destroy(Connection *conn)
Connection * conn_open_tcp_nb_with_port(Octstr *host, int port, int our_port, Octstr *our_host)
static void endmark(unsigned char *p, size_t size)
long conn_outbuf_len(Connection *conn)
Octstr * conn_read_everything(Connection *conn)
long conn_inbuf_len(Connection *conn)
Connection * conn_open_tcp_nb(Octstr *host, int port, Octstr *our_host)
void conn_claim(Connection *conn)
Octstr * conn_read_fixed(Connection *conn, long length)
int conn_error(Connection *conn)
void conn_callback_data_destroyer_t(void *data)
int conn_get_id(Connection *conn)
Octstr * conn_read_packet(Connection *conn, int startmark, int endmark)
Octstr * conn_read_line(Connection *conn)
Connection * conn_open_tcp(Octstr *host, int port, Octstr *our_host)
void conn_callback_t(Connection *conn, void *data)
Connection * conn_wrap_fd(int fd, int ssl)
int conn_flush(Connection *conn)
int conn_register_real(Connection *conn, FDSet *fdset, conn_callback_t callback, void *data, conn_callback_data_destroyer_t destroyer)
Octstr * conn_read_withlen(Connection *conn)
int conn_eof(Connection *conn)
int conn_write_withlen(Connection *conn, Octstr *data)
void conn_unregister(Connection *conn)
Connection * conn_open_tcp_with_port(Octstr *host, int port, int our_port, Octstr *our_host)
int conn_write_data(Connection *conn, unsigned char *data, long length)
int conn_write(Connection *conn, Octstr *data)
int conn_get_connect_result(Connection *conn)
void conn_config_ssl(CfgGroup *grp)