add AUTH_RULE_SUBJECT_CERT for raw public keys
This commit is contained in:
1 parent
6704d69f91
commit
552557a65d
1 file changed
+4
@@ -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 */
|
||||||
|
|||||||
Reference in new issue
Block a user