diff --git a/daemon/tls.c b/daemon/tls.c index 31cafefa36b9fb2a4ab6ac68921b3402ef9dca3a..3bd02a8607788cc3475ef7ee3ffdf92bb362e5e0 100644 --- a/daemon/tls.c +++ b/daemon/tls.c @@ -265,6 +265,8 @@ int tls_process(struct worker_ctx *worker, uv_stream_t *handle, const uint8_t *b return submitted; } +#if GNUTLS_VERSION_NUMBER >= 0x030400 + /* DNS-over-TLS Out of band key-pinned authentication profile uses the same form of pins as HPKP: @@ -333,6 +335,12 @@ void tls_credentials_log_pins(struct tls_credentials *tls_credentials) gnutls_free(certs); } } +#else +void tls_credentials_log_pins(struct tls_credentials *tls_credentials) +{ + kr_log_error("[tls] could not calculate RFC 7858 OOB key-pin; GnuTLS 3.4.0+ required\n"); +} +#endif static int str_replace(char **where_ptr, const char *with) {