Check and forward syscall errors in AF_ALG

This commit is contained in:
Martin Willi
2012-07-16 14:55:07 +02:00
parent e3b2e900e6
commit ae4411547a
6 changed files with 71 additions and 52 deletions
@@ -110,8 +110,7 @@ static size_t lookup_alg(integrity_algorithm_t algo, char **name,
METHOD(signer_t, get_signature, bool,
private_af_alg_signer_t *this, chunk_t data, u_int8_t *buffer)
{
this->ops->hash(this->ops, data, buffer, this->block_size);
return TRUE;
return this->ops->hash(this->ops, data, buffer, this->block_size);
}
METHOD(signer_t, allocate_signature, bool,
@@ -156,8 +155,7 @@ METHOD(signer_t, get_block_size, size_t,
METHOD(signer_t, set_key, bool,
private_af_alg_signer_t *this, chunk_t key)
{
this->ops->set_key(this->ops, key);
return TRUE;
return this->ops->set_key(this->ops, key);
}
METHOD(signer_t, destroy, void,