aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-04-30 13:40:48 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-04-30 13:40:48 +0200
commit552557a65de9f932665e88503a1f2dfda0286cf0 (patch)
treeb681f4ff70f9b6edd43adadc6baf0ef173c9a505
parent6704d69f91716ffaa65f562bea803d81334c4c2b (diff)
downloadstrongswan-552557a65de9f932665e88503a1f2dfda0286cf0.tar.bz2
strongswan-552557a65de9f932665e88503a1f2dfda0286cf0.tar.xz
add AUTH_RULE_SUBJECT_CERT for raw public keys4.6.3
-rw-r--r--src/libcharon/plugins/stroke/stroke_config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_config.c b/src/libcharon/plugins/stroke/stroke_config.c
index c94c18595..483e3d253 100644
--- a/src/libcharon/plugins/stroke/stroke_config.c
+++ b/src/libcharon/plugins/stroke/stroke_config.c
@@ -406,6 +406,10 @@ static auth_cfg_t *build_auth_cfg(private_stroke_config_t *this,
{
certificate = this->cred->load_pubkey(this->cred, KEY_RSA, pubkey,
identity);
+ if (certificate)
+ {
+ cfg->add(cfg, AUTH_RULE_SUBJECT_CERT, certificate);
+ }
}
/* CA constraint */