Skip to content

Commit

Permalink
net/tls: fix compilation guards around sec_param().
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
rzarzynski authored and avikivity committed Sep 8, 2020
1 parent 6dda4de commit f7a5c35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net/tls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<gnutls_sec_param_t> sec_param() const {
return _sec_param;
}
#endif
private:
dh_ptr _params;
#if GNUTLS_VERSION_NUMBER >= 0x030600
#if GNUTLS_VERSION_NUMBER >= 0x030506
std::optional<gnutls_sec_param_t> _sec_param;
#endif
};
Expand Down

0 comments on commit f7a5c35

Please sign in to comment.