From 33b1a2567f7dbc287ffd1c978c0c34bf86d5b719 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 31 Aug 2010 18:02:46 +0200 Subject: [PATCH] Load a left/rightcert2 for EAP-TLS even if no left/rightauth2 is defined --- src/libcharon/plugins/stroke/stroke_config.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/libcharon/plugins/stroke/stroke_config.c b/src/libcharon/plugins/stroke/stroke_config.c index b35bbbfe1..86b958b0d 100644 --- a/src/libcharon/plugins/stroke/stroke_config.c +++ b/src/libcharon/plugins/stroke/stroke_config.c @@ -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; } }