blob: 5a1328ccf32af780dc0d95d1f435be780f32ff23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
A simple template for Botan applications, showing startup, etc
*/
#include <botan/botan.h>
using namespace Botan;
/* This is how you can do compile-time version checking */
/*
#if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(1,3,9)
#error Your Botan installation is too old; upgrade to 1.3.9 or later
#endif
*/
#include <iostream>
int main()
{
try {
/* Put it inside the try block so exceptions at startup/shutdown will
get caught.
*/
LibraryInitializer init;
}
catch(std::exception& e)
{
std::cout << e.what() << std::endl;
return 1;
}
return 0;
}
|