diff options
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_client.h')
-rw-r--r-- | include/osmo-pcap/osmo_pcap_client.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h index ee81e50..b8ceb38 100644 --- a/include/osmo-pcap/osmo_pcap_client.h +++ b/include/osmo-pcap/osmo_pcap_client.h @@ -20,6 +20,8 @@ * */ +#include "osmo_tls.h" + #include <inttypes.h> #include <pcap.h> @@ -64,6 +66,20 @@ struct osmo_pcap_client { struct osmo_wqueue wqueue; struct osmo_timer_list timer; + /* TLS handling */ + bool tls_on; + bool tls_verify; + char *tls_hostname; + char *tls_capath; + char *tls_priority; + + char *tls_client_cert; + char *tls_client_key; + + unsigned tls_log_level; + + struct osmo_tls_session tls_session; + /* statistics */ struct rate_ctr_group *ctrg; }; @@ -79,3 +95,5 @@ void osmo_client_send_data(struct osmo_pcap_client *client, struct pcap_pkthdr *hdr, const uint8_t *data); void osmo_client_send_link(struct osmo_pcap_client *client); void osmo_client_connect(struct osmo_pcap_client *); + +void osmo_client_reconnect(struct osmo_pcap_client *); |