]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 c94c18595ca6772a770785d8c731389fbf91d7b7..483e3d25342444db45983b0cb83e0ce56012af12 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 */