Relay rng return value in nonce plugin
This commit is contained in:
committed by
Martin Willi
parent
39e807728e
commit
ce024c1662
@@ -38,15 +38,13 @@ struct private_nonce_nonceg_t {
|
||||
METHOD(nonce_gen_t, get_nonce, bool,
|
||||
private_nonce_nonceg_t *this, size_t size, u_int8_t *buffer)
|
||||
{
|
||||
this->rng->get_bytes(this->rng, size, buffer);
|
||||
return TRUE;
|
||||
return this->rng->get_bytes(this->rng, size, buffer);
|
||||
}
|
||||
|
||||
METHOD(nonce_gen_t, allocate_nonce, bool,
|
||||
private_nonce_nonceg_t *this, size_t size, chunk_t *chunk)
|
||||
{
|
||||
this->rng->allocate_bytes(this->rng, size, chunk);
|
||||
return TRUE;
|
||||
return this->rng->allocate_bytes(this->rng, size, chunk);
|
||||
}
|
||||
|
||||
METHOD(nonce_gen_t, destroy, void,
|
||||
|
||||
Reference in New Issue
Block a user