diff options
author | Stef Walter <stef@thewalter.net> | 2013-06-14 13:02:22 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-06-14 13:32:04 +0200 |
commit | bfe10cd0660fd81d78c8c5ce3eaa7d1f046859e1 (patch) | |
tree | 7c691c0a82eca27ce905bc448e6f51575b46dae8 /common | |
parent | 045df29606ea9853b4fc8bdba062a5e4a7a5be95 (diff) |
trust: Correctly reflect the CK_TOKEN_INFO writability flags
Correctly set the CKF_TOKEN_WRITE_PROTECTED flag for paths
which we will be able to write to.
Diffstat (limited to 'common')
-rw-r--r-- | common/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h index 0f9677b..9127f95 100644 --- a/common/compat.h +++ b/common/compat.h @@ -103,6 +103,8 @@ char * strdup_path_mangle (const char *template); #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> +#include <io.h> + /* Oh ... my ... god */ #undef CreateMutex @@ -164,6 +166,7 @@ void p11_mmap_close (p11_mmap *map); #include <pthread.h> #include <dlfcn.h> #include <time.h> +#include <unistd.h> typedef pthread_mutex_t p11_mutex_t; |