summaryrefslogtreecommitdiffstats
path: root/daemon/tls.h
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2016-08-05 10:29:25 +0200
committerOndřej Surý <ondrej@sury.org>2016-08-05 11:47:14 +0200
commit07c752dd99992eea94a49f5869d477efb264942c (patch)
treeaae0a8d1c28dd0697a25d88bc8abc25ce81e6000 /daemon/tls.h
parentdaemon/tls: cleanup (diff)
downloadknot-resolver-07c752dd99992eea94a49f5869d477efb264942c.tar.xz
knot-resolver-07c752dd99992eea94a49f5869d477efb264942c.zip
Move struct tls_credentials_t from daemon/worker.h to daemon/tls.h
Diffstat (limited to 'daemon/tls.h')
-rw-r--r--daemon/tls.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/tls.h b/daemon/tls.h
index 1ecea447..e5623934 100644
--- a/daemon/tls.h
+++ b/daemon/tls.h
@@ -21,6 +21,13 @@
#include <libknot/packet/pkt.h>
struct tls_ctx_t;
+struct tls_credentials_t;
+struct tls_credentials_t {
+ int count;
+ char *tls_cert;
+ char *tls_key;
+ gnutls_certificate_credentials_t credentials;
+};
struct tls_ctx_t* tls_new(struct worker_ctx *worker);
void tls_free(struct tls_ctx_t* tls);