1
/*************************************************
2
* Version Information Header File *
3
* (C) 1999-2007 The Botan Project *
4
*************************************************/
6
#ifndef BOTAN_VERSION_H__
7
#define BOTAN_VERSION_H__
9
#include <botan/types.h>
14
/*************************************************
15
* Get information describing the version *
16
*************************************************/
17
std::string version_string();
18
u32bit version_major();
19
u32bit version_minor();
20
u32bit version_patch();
22
/*************************************************
23
* Macros for compile-time version checks *
24
*************************************************/
25
#define BOTAN_VERSION_CODE_FOR(a,b,c) ((a << 16) | (b << 8) | (c))
27
#define BOTAN_VERSION_CODE BOTAN_VERSION_CODE_FOR(BOTAN_VERSION_MAJOR, \
28
BOTAN_VERSION_MINOR, \