Don't send CERTREQs when initiating aggressive mode PSK

This commit is contained in:
Martin Willi
2012-07-09 12:05:23 +02:00
parent 4f07a19d10
commit 3128e7fa7c
@@ -349,6 +349,10 @@ METHOD(task_t, build_i, status_t,
case AGGRESSIVE: case AGGRESSIVE:
if (this->state == CR_SA) if (this->state == CR_SA)
{ {
if (!use_certs(this, message))
{
return SUCCESS;
}
build_certreqs(this, message); build_certreqs(this, message);
} }
return NEED_MORE; return NEED_MORE;