credentials: Added void *params to public_key encrypt() and private_key decrypt() methods
This commit is contained in:
@@ -538,7 +538,7 @@ METHOD(private_key_t, sign, bool,
|
||||
|
||||
METHOD(private_key_t, decrypt, bool,
|
||||
private_bliss_private_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t crypto, chunk_t *plain)
|
||||
void *params, chunk_t crypto, chunk_t *plain)
|
||||
{
|
||||
DBG1(DBG_LIB, "encryption scheme %N not supported",
|
||||
encryption_scheme_names, scheme);
|
||||
|
||||
@@ -220,7 +220,7 @@ METHOD(public_key_t, verify, bool,
|
||||
|
||||
METHOD(public_key_t, encrypt_, bool,
|
||||
private_bliss_public_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t plain, chunk_t *crypto)
|
||||
void *params, chunk_t plain, chunk_t *crypto)
|
||||
{
|
||||
DBG1(DBG_LIB, "encryption scheme %N not supported",
|
||||
encryption_scheme_names, scheme);
|
||||
|
||||
@@ -168,8 +168,8 @@ START_TEST(test_bliss_sign_fail)
|
||||
ck_assert(!pubkey->get_fingerprint(pubkey, KEYID_PGPV4, &fp));
|
||||
|
||||
/* encryption / decryption operation is not defined for BLISS */
|
||||
ck_assert(!pubkey->encrypt(pubkey, ENCRYPT_UNKNOWN, chunk_empty, NULL));
|
||||
ck_assert(!privkey->decrypt(privkey, ENCRYPT_UNKNOWN, chunk_empty, NULL));
|
||||
ck_assert(!pubkey->encrypt(pubkey, ENCRYPT_UNKNOWN, NULL, chunk_empty, NULL));
|
||||
ck_assert(!privkey->decrypt(privkey, ENCRYPT_UNKNOWN, NULL, chunk_empty, NULL));
|
||||
|
||||
/* sign with invalid signature scheme */
|
||||
ck_assert(!privkey->sign(privkey, SIGN_UNKNOWN, NULL, msg, &signature));
|
||||
|
||||
Reference in New Issue
Block a user