Add a return value to signer_t.allocate_signature()

This commit is contained in:
Martin Willi
2012-07-16 14:53:32 +02:00
parent ad08730a4b
commit cbfbba7d86
6 changed files with 25 additions and 7 deletions
+5 -1
View File
@@ -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;