Load a left/rightcert2 for EAP-TLS even if no left/rightauth2 is defined

This commit is contained in:
Martin Willi
2010-08-31 18:10:23 +02:00
parent c811479986
commit 33b1a2567f
+10 -1
View File
@@ -362,7 +362,16 @@ static auth_cfg_t *build_auth_cfg(private_stroke_config_t *this,
}
}
else
{ /* no second authentication round, fine */
{ /* no second authentication round, fine. But load certificates
* for other purposes (EAP-TLS) */
if (cert)
{
certificate = this->cred->load_peer(this->cred, cert);
if (certificate)
{
certificate->destroy(certificate);
}
}
return NULL;
}
}