Add a return value to signer_t.allocate_signature()
This commit is contained in:
@@ -220,7 +220,11 @@ METHOD(tls_protection_t, build, status_t,
|
||||
|
||||
sigheader(this->signer_out, this->seq_out, *type,
|
||||
this->version, data->len);
|
||||
this->signer_out->allocate_signature(this->signer_out, *data, &mac);
|
||||
if (!this->signer_out->allocate_signature(this->signer_out,
|
||||
*data, &mac))
|
||||
{
|
||||
return FAILED;
|
||||
}
|
||||
if (this->crypter_out)
|
||||
{
|
||||
chunk_t padding, iv;
|
||||
|
||||
Reference in New Issue
Block a user