aboutsummaryrefslogtreecommitdiffstats
path: root/wrappers/swig/botan.swg
blob: 9088f4272399f410f8e878441138b93dc09642c6 (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
/*************************************************
* SWIG Interface for Botan                       *
*************************************************/
%module botan

%include "typemaps.i"
%include "std_string.i"
%include "exception.i"
%include "constraints.i"
%include "carrays.i"

%{
#include "base.h"
%}

%exception {
   try {
      $action
   }
   catch(std::exception& e)
   {
      SWIG_exception(SWIG_RuntimeError, e.what());
   }
}

%include "base.h"