From be33a49c734b5b83cbf64fa132c062ba8643bbe1 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 15 Oct 2015 15:33:32 -0400 Subject: Fix compile of ffi when tls is disabled. GH #300 --- src/lib/ffi/ffi.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp index 978a76c0f..eb30b4831 100644 --- a/src/lib/ffi/ffi.cpp +++ b/src/lib/ffi/ffi.cpp @@ -20,8 +20,6 @@ #include #include #include -#include -#include #include #include @@ -49,11 +47,15 @@ #include #endif - #if defined(BOTAN_HAS_BCRYPT) #include #endif +#if defined(BOTAN_HAS_TLS) + #include + #include +#endif + namespace { #define BOTAN_ASSERT_ARG_NON_NULL(p) \ @@ -185,7 +187,10 @@ BOTAN_FFI_DECLARE_STRUCT(botan_pk_op_verify_struct, Botan::PK_Verifier, 0x2B91F9 BOTAN_FFI_DECLARE_STRUCT(botan_pk_op_ka_struct, Botan::PK_Key_Agreement, 0x2939CAB1); BOTAN_FFI_DECLARE_STRUCT(botan_x509_cert_struct, Botan::X509_Certificate, 0x8F628937); + +#if defined(BOTAN_HAS_TLS) BOTAN_FFI_DECLARE_STRUCT(botan_tls_channel_struct, Botan::TLS::Channel, 0x0212FE99); +#endif /* * Versioning -- cgit v1.2.3