32 #if !defined(_SPANDSP_SSLFAX_H_) 33 #define _SPANDSP_SSLFAX_H_ 35 #if defined(SPANDSP_SUPPORT_SSLFAX) 36 #include <openssl/ssl.h> 37 #include <openssl/err.h> 40 typedef struct sslfax_state_s sslfax_state_t;
42 #if defined(__cplusplus) 47 SPAN_DECLARE(sslfax_state_t *) sslfax_init(sslfax_state_t *s);
49 SPAN_DECLARE(
bool) sslfax_start_client(sslfax_state_t *s);
51 SPAN_DECLARE(
void) sslfax_cleanup(sslfax_state_t *s,
bool sustain);
53 SPAN_DECLARE(
int) sslfax_tx(sslfax_state_t *s, int16_t amp[],
int len);
55 SPAN_DECLARE(
int) sslfax_rx(sslfax_state_t *s,
const int16_t amp[],
int len);
57 SPAN_DECLARE(
void) sslfax_setup(sslfax_state_t *s,
60 hdlc_frame_handler_t hdlc_accept,
61 hdlc_underflow_handler_t hdlc_tx_underflow,
67 SPAN_DECLARE(
int) sslfax_write(sslfax_state_t *s,
const uint8_t *buf,
unsigned int count,
int modem_fd,
long int ms,
bool filter,
bool sustain);
69 SPAN_DECLARE(
int) sslfax_read(sslfax_state_t *s,
void *buf,
size_t count,
int modem_fd,
long ms,
bool sustain,
bool carryon);
71 #if defined(__cplusplus) int(* span_get_msg_func_t)(void *user_data, uint8_t *msg, int max_len)
Definition: async.h:111
void(* span_put_msg_func_t)(void *user_data, const uint8_t *msg, int len)
Definition: async.h:107
int(* span_get_byte_func_t)(void *user_data)
Definition: async.h:119