Kea 3.1.5
botan_wrapper.h
Go to the documentation of this file.
1// Copyright (C) 2021-2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7// Do not include this header directly: use crypto_tls.h instead.
8
9#ifndef BOTAN_WRAPPER_H
10#define BOTAN_WRAPPER_H
11
13
14#ifdef WITH_BOTAN
15
18
19#if defined(__GNUC__) || defined(__clang__)
20#pragma GCC diagnostic push
21#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
22#endif
23
24#ifdef __GNUC__
25#pragma GCC diagnostic ignored "-Woverloaded-virtual"
26#pragma GCC diagnostic ignored "-Wshadow"
27#endif
28
30
31#ifdef PROTOCOL_VERSION
32#define BOTAN_BACKUP_FOR_PROTOCOL_VERSION PROTOCOL_VERSION
33#undef PROTOCOL_VERSION
34#endif
35
36#include <boost/beast/core/error.hpp>
37#include <botan/asio_stream.h>
38
39#ifdef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
40#define PROTOCOL_VERSION BOTAN_BACKUP_FOR_PROTOCOL_VERSION
41#undef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
42#endif
43
44#if defined(__GNUC__) || defined(__clang__)
45#pragma GCC diagnostic pop
46#endif
47
48#endif // WITH_BOTAN
49
50#endif // BOTAN_WRAPPER_H