From f7a5c3530c8de958d7cbc6f4814b95f010d2cb7d Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Mon, 10 Aug 2020 22:38:41 +0200 Subject: [PATCH] net/tls: fix compilation guards around sec_param(). Signed-off-by: Radoslaw Zarzynski Message-Id: <1597091921-26171-2-git-send-email-rzarzyns@redhat.com> --- src/net/tls.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/tls.cc b/src/net/tls.cc index 64301b5417e..1cc8733a5bb 100644 --- a/src/net/tls.cc +++ b/src/net/tls.cc @@ -203,12 +203,14 @@ class tls::dh_params::impl : gnutlsobj { operator gnutls_dh_params_t() const { return _params.get(); } +#if GNUTLS_VERSION_NUMBER >= 0x030506 std::optional sec_param() const { return _sec_param; } +#endif private: dh_ptr _params; -#if GNUTLS_VERSION_NUMBER >= 0x030600 +#if GNUTLS_VERSION_NUMBER >= 0x030506 std::optional _sec_param; #endif };