summaryrefslogtreecommitdiffstats
path: root/daemon/tls_ephemeral_credentials.c
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2022-08-23 13:08:58 +0200
committerOto Šťáva <oto.stava@nic.cz>2023-01-26 12:56:07 +0100
commit343037f959f926982e1cc7c567bc0e0cb6596ad9 (patch)
treebbbc33f24c3c68c56b266bad8b31b7be64223291 /daemon/tls_ephemeral_credentials.c
parentdaemon: channel udp_queue through protolayers (diff)
downloadknot-resolver-343037f959f926982e1cc7c567bc0e0cb6596ad9.tar.xz
knot-resolver-343037f959f926982e1cc7c567bc0e0cb6596ad9.zip
daemon: implement TLS with protocol layers
Diffstat (limited to 'daemon/tls_ephemeral_credentials.c')
-rw-r--r--daemon/tls_ephemeral_credentials.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/tls_ephemeral_credentials.c b/daemon/tls_ephemeral_credentials.c
index cc12ca0b..dc9cb23b 100644
--- a/daemon/tls_ephemeral_credentials.c
+++ b/daemon/tls_ephemeral_credentials.c
@@ -189,7 +189,8 @@ bad:
return NULL;
}
-struct tls_credentials * tls_get_ephemeral_credentials()
+/*! Generate new ephemeral TLS credentials. */
+struct tls_credentials * tls_get_ephemeral_credentials(void)
{
struct tls_credentials *creds = NULL;
gnutls_x509_privkey_t privkey = NULL;