Kea
3.3.4
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/pkix_types.h>
38
#include <botan/x509cert.h>
39
#include <botan/asio_stream.h>
40
41
#ifdef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
42
#define PROTOCOL_VERSION BOTAN_BACKUP_FOR_PROTOCOL_VERSION
43
#undef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
44
#endif
45
46
#if defined(__GNUC__) || defined(__clang__)
47
#pragma GCC diagnostic pop
48
#endif
49
50
#ifdef BOTAN_HAS_SYSTEM_RNG
51
#include <botan/system_rng.h>
52
using
BotanRandomNumberGenerator = Botan::System_RNG;
53
#else
54
#include <botan/auto_rng.h>
55
using
BotanRandomNumberGenerator = Botan::AutoSeeded_RNG;
56
#endif
57
58
#endif
// WITH_BOTAN
59
60
#endif
// BOTAN_WRAPPER_H
src
lib
asiolink
botan_wrapper.h
Generated on
for Kea by
1.16.1