From: Ondřej Surý Date: Fri, 5 Aug 2016 08:29:25 +0000 (+0200) Subject: Move struct tls_credentials_t from daemon/worker.h to daemon/tls.h X-Git-Tag: v1.1.0~7^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07c752dd99992eea94a49f5869d477efb264942c;p=thirdparty%2Fknot-resolver.git Move struct tls_credentials_t from daemon/worker.h to daemon/tls.h --- diff --git a/daemon/tls.h b/daemon/tls.h index 1ecea4474..e56239342 100644 --- a/daemon/tls.h +++ b/daemon/tls.h @@ -21,6 +21,13 @@ #include 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); diff --git a/daemon/worker.h b/daemon/worker.h index 0cbdd0757..6cfc7e165 100644 --- a/daemon/worker.h +++ b/daemon/worker.h @@ -28,12 +28,7 @@ /** @cond internal Freelist of available mempools. */ typedef array_t(void *) mp_freelist_t; -struct tls_credentials_t { - int count; - char *tls_cert; - char *tls_key; - gnutls_certificate_credentials_t credentials; -}; +struct tls_credentials_t; /** * Query resolution worker.