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>
40typedef struct sslfax_state_s sslfax_state_t;
42#if defined(__cplusplus)
47SPAN_DECLARE(sslfax_state_t *) sslfax_init(sslfax_state_t *s);
49SPAN_DECLARE(
bool) sslfax_start_client(sslfax_state_t *s);
51SPAN_DECLARE(
void) sslfax_cleanup(sslfax_state_t *s,
bool sustain);
53SPAN_DECLARE(
int) sslfax_tx(sslfax_state_t *s, int16_t amp[],
int len);
55SPAN_DECLARE(
int) sslfax_rx(sslfax_state_t *s,
const int16_t amp[],
int len);
57SPAN_DECLARE(
void) sslfax_setup(sslfax_state_t *s,
60 hdlc_frame_handler_t hdlc_accept,
61 hdlc_underflow_handler_t hdlc_tx_underflow,
67SPAN_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);
69SPAN_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
int(* span_get_byte_func_t)(void *user_data)
Definition async.h:119
void(* span_put_msg_func_t)(void *user_data, const uint8_t *msg, int len)
Definition async.h:107