Skip to content
Snippets Groups Projects
Commit 9b4c585a authored by Corentin Chary's avatar Corentin Chary Committed by Corentin Chary
Browse files

pkcs11: windows fixes

parent 2cdf2969
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required (VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
project (pkcs11 C)
set(PKCS11_PROXY_SRCS gck-rpc-module.c gck-rpc-message.c gck-rpc-util.c egg-buffer.c)
......
......@@ -251,7 +251,7 @@ static CK_RV call_write(CallState * cs, unsigned char *data, size_t len)
return CKR_DEVICE_ERROR;
}
r = send(fd, data, len, 0);
r = send(fd, (void *)data, len, 0);
if (r == -1) {
if (errno == EPIPE) {
......@@ -290,7 +290,7 @@ static CK_RV call_read(CallState * cs, unsigned char *data, size_t len)
return CKR_DEVICE_ERROR;
}
r = recv(fd, data, len, 0);
r = recv(fd, (void *)data, len, 0);
if (r == 0) {
warning(("couldn't receive data: daemon closed connection"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment