From d3fa2085bf9169eab3430ff903f75b7487c7ee82 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 6 Dec 2008 00:22:35 +0000 Subject: Build on Win32 and create VCE project. --- src/p11-tests.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/p11-tests.h') diff --git a/src/p11-tests.h b/src/p11-tests.h index c4a2e25..9be69da 100644 --- a/src/p11-tests.h +++ b/src/p11-tests.h @@ -1,6 +1,14 @@ #ifndef P11TESTST_H_ #define P11TESTST_H_ +#ifndef _WIN32 +#include "config.h" +#endif + +#ifdef _MSC_VER +#pragma warning(disable : 4996) +#endif + #include "pkcs11/pkcs11.h" #include @@ -17,6 +25,7 @@ extern int p11t_test_unexpected; */ const char* p11t_msg_rv(CK_RV rv); +const char* p11t_msg_lasterr(void); void p11t_msg_va(const char *message, va_list va); void p11t_msg_print(const char *message, ...); @@ -139,6 +148,7 @@ void p11t_slot_for_each_mech(CK_MECHANISM_TYPE mech_type, P11tSlotMechCallback c * test-data.c */ +#define P11T_BLOCK 1024 extern const CK_BYTE p11t_test_data[]; extern const CK_ULONG p11t_test_data_size; extern const CK_ULONG p11t_test_data_bits; -- cgit v1.2.3