diff options
author | Ed Tanous <ed@tanous.net> | 2024-04-14 20:24:20 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-16 22:24:44 +0300 |
commit | 6dbe9bea2e45791fc924645fb8b7813fdd7f4cd1 (patch) | |
tree | c358d457542fab95ed35490f229cfa37792387fa /http | |
parent | 10cb44f3d47622faf795f8f09baef389cb0a6714 (diff) | |
download | bmcweb-6dbe9bea2e45791fc924645fb8b7813fdd7f4cd1.tar.xz |
Remove OpenSSL warnings ignore
If we include OpenSSL in extern "C" blocks consistently, c++ warnings no
longer appear. This means we can remove the special case from meson.
Tested: Code compiles when built locally on an ubuntu 22.04 system.
Change-Id: I5add4113b32cd88b7fdd874174c845425a7c287a
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http')
-rw-r--r-- | http/mutual_tls.hpp | 3 | ||||
-rw-r--r-- | http/utility.hpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/http/mutual_tls.hpp b/http/mutual_tls.hpp index 1620054e1c..9f9f82b297 100644 --- a/http/mutual_tls.hpp +++ b/http/mutual_tls.hpp @@ -4,8 +4,11 @@ #include "mutual_tls_meta.hpp" #include "persistent_data.hpp" +extern "C" +{ #include <openssl/crypto.h> #include <openssl/ssl.h> +} #include <boost/asio/ip/address.hpp> #include <boost/asio/ssl/verify_context.hpp> diff --git a/http/utility.hpp b/http/utility.hpp index 5a2dc67d5b..1d6750098f 100644 --- a/http/utility.hpp +++ b/http/utility.hpp @@ -2,7 +2,10 @@ #include "bmcweb_config.h" +extern "C" +{ #include <openssl/crypto.h> +} #include <boost/callable_traits.hpp> #include <boost/url/parse.hpp> |