diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-09-06 11:38:56 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-09-08 16:17:01 +0200 |
commit | 9ea4da4bbbf90396b9b0694c0bf91712afce44f4 (patch) | |
tree | 2671c874efb167e6950d2fdf552ac1532b93b243 /include/osmo-pcap/osmo_pcap_server.h | |
parent | 064d2242881acff7a0d7f4877179559454163a57 (diff) |
server: Introduce tls mode for the server
Using tls priority of NORMAL:+ANON-ECDH:+ANON-DH already allows a
client to connect to a server and protect the data using tls.
Generate the dh params on load (and do that for the client right
now as well) but that will go away soon.
Change-Id: Ifa2ad24c0a631573c259a3bf94b91a946ad9ec9d
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_server.h')
-rw-r--r-- | include/osmo-pcap/osmo_pcap_server.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_server.h b/include/osmo-pcap/osmo_pcap_server.h index 6facbe3..89c3df2 100644 --- a/include/osmo-pcap/osmo_pcap_server.h +++ b/include/osmo-pcap/osmo_pcap_server.h @@ -24,6 +24,7 @@ #define OSMO_PCAP_SERVER_H #include "wireformat.h" +#include "osmo_tls.h" #include <osmocom/core/select.h> #include <osmocom/core/linuxlist.h> @@ -35,6 +36,7 @@ #include <pcap.h> +#include <stdbool.h> #include <time.h> struct rate_ctr_group; @@ -94,6 +96,12 @@ struct osmo_pcap_conn { /* statistics */ struct rate_ctr_group *ctrg; + + /* tls */ + bool tls_use; + bool direct_read; + size_t tls_limit_read; + struct osmo_tls_session tls_session; }; struct osmo_pcap_server { @@ -109,6 +117,13 @@ struct osmo_pcap_server { void *zmq_ctx; void *zmq_publ; + /* tls base */ + unsigned tls_log_level; + char *tls_priority; + char *tls_capath; + char *tls_server_cert; + char *tls_server_key; + char *base_path; off_t max_size; |