From faae49c640ee2d308d40bc5867d6ecbd80ac0fc1 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 26 Feb 2014 16:48:01 +0100 Subject: initial packaging based on http://www.unchartedbackwaters.co.uk/pyblosxom/static/truecrypt_debian_packaging --- debian/patches/000-opencryptoki-2.2.8.patch | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 debian/patches/000-opencryptoki-2.2.8.patch (limited to 'debian/patches/000-opencryptoki-2.2.8.patch') diff --git a/debian/patches/000-opencryptoki-2.2.8.patch b/debian/patches/000-opencryptoki-2.2.8.patch new file mode 100644 index 0000000..93b19e2 --- /dev/null +++ b/debian/patches/000-opencryptoki-2.2.8.patch @@ -0,0 +1,47 @@ +Description: Build against libopencryptoki 2.2.28 +Author: Francis Russell +--- a/Common/SecurityToken.cpp 2009-11-08 01:24:41.000000000 +0000 ++++ b/Common/SecurityToken.cpp 2009-11-08 01:29:30.000000000 +0000 +@@ -657,9 +657,15 @@ + TC_TOKEN_ERR (CKR_CRYPTOKI_ALREADY_INITIALIZED) + TC_TOKEN_ERR (CKR_MUTEX_BAD) + TC_TOKEN_ERR (CKR_MUTEX_NOT_LOCKED) ++ ++ /* ++ These error codes do not exist in PKCS#11 v2.11. ++ Removing them simply causes the error description strings to be returned as hex. ++ + TC_TOKEN_ERR (CKR_NEW_PIN_MODE) + TC_TOKEN_ERR (CKR_NEXT_OTP) + TC_TOKEN_ERR (CKR_FUNCTION_REJECTED) ++ */ + + #undef TC_TOKEN_ERR + }; +--- a/Common/SecurityToken.h 2009-11-08 01:24:41.000000000 +0000 ++++ b/Common/SecurityToken.h 2009-11-08 01:27:01.000000000 +0000 +@@ -19,6 +19,15 @@ + #ifndef NULL_PTR + # define NULL_PTR 0 + #endif ++ ++#ifndef CK_TRUE ++# define CK_TRUE TRUE ++#endif ++ ++#ifndef CK_FALSE ++# define CK_FALSE FALSE ++#endif ++ + #define CK_PTR * + #define CK_CALLBACK_FUNCTION(RET_TYPE, NAME) RET_TYPE (* NAME) + +@@ -40,7 +49,7 @@ + # define CK_DECLARE_FUNCTION(RET_TYPE, NAME) RET_TYPE NAME + # define CK_DECLARE_FUNCTION_POINTER(RET_TYPE, NAME) RET_TYPE (* NAME) + +-# include ++# include + + #endif // !TC_WINDOWS + -- cgit v1.2.3