Botan 3.9.0
Crypto and TLS for C&
version.h File Reference

Public Header. More...

#include <botan/types.h>
#include <optional>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Botan

Macros

#define BOTAN_VERSION_CODE   BOTAN_VERSION_CODE_FOR(BOTAN_VERSION_MAJOR, BOTAN_VERSION_MINOR, BOTAN_VERSION_PATCH)
#define BOTAN_VERSION_CODE_FOR(a, b, c)

Functions

std::string Botan::runtime_version_check (uint32_t major, uint32_t minor, uint32_t patch)
const char * Botan::short_version_cstr ()
std::string Botan::short_version_string ()
bool Botan::unsafe_for_production_build ()
const char * Botan::version_cstr ()
uint32_t Botan::version_datestamp ()
std::optional< std::string > Botan::version_distribution_info ()
uint32_t Botan::version_major ()
uint32_t Botan::version_minor ()
uint32_t Botan::version_patch ()
std::string Botan::version_string ()
std::optional< std::string > Botan::version_vc_revision ()

Detailed Description

Public Header.

Definition in file version.h.

Macro Definition Documentation

◆ BOTAN_VERSION_CODE

Compare using BOTAN_VERSION_CODE_FOR, as in

if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(1,8,0)

error "Botan version too old"

endif

Definition at line 146 of file version.h.

◆ BOTAN_VERSION_CODE_FOR

#define BOTAN_VERSION_CODE_FOR ( a,
b,
c )
Value:
(((a) << 16) | ((b) << 8) | (c))

Definition at line 138 of file version.h.