add AUTH_RULE_SUBJECT_CERT for raw public keys 4.6.3
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 30 Apr 2012 11:40:48 +0000 (13:40 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 30 Apr 2012 11:40:48 +0000 (13:40 +0200)
src/libcharon/plugins/stroke/stroke_config.c

index c94c185..483e3d2 100644 (file)
@@ -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 */