Kea 2.7.7
botan_wrapper.h
Go to the documentation of this file.
1// Copyright (C) 2021-2024 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
25
26#ifdef PROTOCOL_VERSION
27#define BOTAN_BACKUP_FOR_PROTOCOL_VERSION PROTOCOL_VERSION
28#undef PROTOCOL_VERSION
29#endif
30
31#include <botan/asio_error.h>
32
33#ifdef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
34#define PROTOCOL_VERSION BOTAN_BACKUP_FOR_PROTOCOL_VERSION
35#undef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
36#endif
37
38#if defined(__GNUC__) || defined(__clang__)
39#pragma GCC diagnostic pop
40#endif
41
42#endif // WITH_BOTAN
43
44#endif // BOTAN_WRAPPER_H