summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-09 15:35:13 +0000
committerStef Walter <stef@memberwebs.com>2008-12-09 15:35:13 +0000
commitd44882432b1534c8cfca3057ad59765a949adacc (patch)
tree8184895d6c4d40b4a36a8c92a4ccb7dc3f68f8e2 /src/module.c
parentc9099836f080c8bb821264050f5f6d59a1ceddba (diff)
Fixes for building on Windows, and some tweaks for testing the CAPI PKCS#11 module.
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c
index 7dec518..b7a715b 100644
--- a/src/module.c
+++ b/src/module.c
@@ -283,13 +283,13 @@ p11t_module_load(const char *filename)
module = LoadLibrary(filename);
if(!module)
- p11t_msg_fatal("couldn't load library: %s: %s", filename, p11t_msg_lasterr());
+ p11t_msg_fatal("couldn't load library: %s: %s", filename, p11t_msg_os());
/* Lookup the appropriate function in the library */
get_function_list = (CK_C_GetFunctionList)GetProcAddress(module, "C_GetFunctionList");
if(!get_function_list)
p11t_msg_fatal("C_GetFunctionList: couldn't find function in library: %s: %s",
- filename, p11t_msg_lasterr());
+ filename, p11t_msg_os());
#else /* !_WIN32 */