diff options
author | Jack Lloyd <[email protected]> | 2017-07-25 15:24:30 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-07-31 10:31:53 -0400 |
commit | 5703b195f5dbf0a0df45bf0a7f39aa090666f877 (patch) | |
tree | 1f686ae1362aaef9eabe1db3c1a58ac0fd166a70 /src/lib/ffi/ffi_pkey.h | |
parent | bb30a1e1ffbe839478b4bf04624d841c6d9ecfc3 (diff) |
Split up ffi.cpp into several files
It was getting pretty big and would get worse over time, eg whenver
I get around to adding TLS support.
Diffstat (limited to 'src/lib/ffi/ffi_pkey.h')
-rw-r--r-- | src/lib/ffi/ffi_pkey.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi_pkey.h b/src/lib/ffi/ffi_pkey.h new file mode 100644 index 000000000..536e5fc29 --- /dev/null +++ b/src/lib/ffi/ffi_pkey.h @@ -0,0 +1,22 @@ +/* +* (C) 2017 Jack Lloyd +* +* Botan is released under the Simplified BSD License (see license.txt) +*/ + +#ifndef BOTAN_FFI_PKEY_H__ +#define BOTAN_FFI_PKEY_H__ + +#include <botan/pk_keys.h> +#include <botan/internal/ffi_util.h> + +extern "C" { + +using namespace Botan_FFI; + +BOTAN_FFI_DECLARE_STRUCT(botan_pubkey_struct, Botan::Public_Key, 0x2C286519); +BOTAN_FFI_DECLARE_STRUCT(botan_privkey_struct, Botan::Private_Key, 0x7F96385E); + +} + +#endif |