credentials: Added void *params to public_key encrypt() and private_key decrypt() methods
This commit is contained in:
@@ -137,7 +137,7 @@ static bool decrypt(private_key_t *private, chunk_t key, chunk_t iv, int oid,
|
||||
DBG1(DBG_LIB, "unsupported content encryption algorithm");
|
||||
return FALSE;
|
||||
}
|
||||
if (!private->decrypt(private, ENCRYPT_RSA_PKCS1, key, &plain_key))
|
||||
if (!private->decrypt(private, ENCRYPT_RSA_PKCS1, NULL, key, &plain_key))
|
||||
{
|
||||
DBG1(DBG_LIB, "symmetric key could not be decrypted with rsa");
|
||||
return FALSE;
|
||||
@@ -438,7 +438,7 @@ static bool encrypt_key(certificate_t *cert, chunk_t in, chunk_t *out)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
if (!key->encrypt(key, ENCRYPT_RSA_PKCS1, in, out))
|
||||
if (!key->encrypt(key, ENCRYPT_RSA_PKCS1, NULL, in, out))
|
||||
{
|
||||
key->destroy(key);
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user