diff options
author | Stef Walter <stef@memberwebs.com> | 2008-12-06 00:22:35 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-12-06 00:22:35 +0000 |
commit | d3fa2085bf9169eab3430ff903f75b7487c7ee82 (patch) | |
tree | cf0f05047b689dc5e48a2dcec955c268b95eaee8 /src/p11-tests.h | |
parent | 746579baf9176eb13dc19e98627e27e900c9859d (diff) |
Build on Win32 and create VCE project.
Diffstat (limited to 'src/p11-tests.h')
-rw-r--r-- | src/p11-tests.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <assert.h> @@ -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; |