diff --git a/libpcp/key.c b/libpcp/key.c index 31d458f..2f4cf61 100644 --- a/libpcp/key.c +++ b/libpcp/key.c @@ -32,7 +32,7 @@ unsigned char *pcp_derivekey(char *passphrase) { int i; // make a hash from the passphrase and then HCYCLES times from the result - crypto_hash_sha256(temp, passphrase, plen); + crypto_hash_sha256(temp, (unsigned char*)passphrase, plen); for(i=0; i