summaryrefslogtreecommitdiffstats
path: root/daemon/tls.h
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2016-08-02 15:01:32 +0200
committerOndřej Surý <ondrej@sury.org>2016-08-05 11:47:14 +0200
commit142eb1a08437c88fd31e77779a9f87efc28af324 (patch)
treee657f28e3fdf3a7d9e1032d8582d728fe74dea44 /daemon/tls.h
parentMiscelaneous fixes in coding style (diff)
downloadknot-resolver-142eb1a08437c88fd31e77779a9f87efc28af324.tar.xz
knot-resolver-142eb1a08437c88fd31e77779a9f87efc28af324.zip
Initialize global TLS credentials in the worker_ctx and initialize GnuTLS logging at global level
Diffstat (limited to 'daemon/tls.h')
-rw-r--r--daemon/tls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/tls.h b/daemon/tls.h
index fdce96bd..3df94d0e 100644
--- a/daemon/tls.h
+++ b/daemon/tls.h
@@ -17,6 +17,7 @@
#pragma once
#include <uv.h>
+#include <gnutls/gnutls.h>
#include <libknot/packet/pkt.h>
struct tls_ctx_t;
@@ -26,3 +27,5 @@ void tls_free(struct tls_ctx_t* tls);
int tls_push(struct qr_task *task, uv_handle_t* handle, knot_pkt_t * pkt);
int tls_process(struct worker_ctx *worker, uv_stream_t *handle, const uint8_t *buf, ssize_t nread);
+
+int tls_certificate_set(struct worker_ctx *worker, const char *tls_cert, const char *tls_key);