mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
add AUTH_RULE_SUBJECT_CERT for raw public keys
This commit is contained in:
parent
6704d69f91
commit
552557a65d
@ -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,
|
certificate = this->cred->load_pubkey(this->cred, KEY_RSA, pubkey,
|
||||||
identity);
|
identity);
|
||||||
|
if (certificate)
|
||||||
|
{
|
||||||
|
cfg->add(cfg, AUTH_RULE_SUBJECT_CERT, certificate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CA constraint */
|
/* CA constraint */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user