mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -04:00
updated nm plugin to new fingerprinting API
This commit is contained in:
parent
cb4f09eff3
commit
87d2026341
@ -155,10 +155,11 @@ static enumerator_t* create_private_enumerator(private_nm_creds_t *this,
|
|||||||
}
|
}
|
||||||
if (id && id->get_type(id) != ID_ANY)
|
if (id && id->get_type(id) != ID_ANY)
|
||||||
{
|
{
|
||||||
identification_t *keyid;
|
chunk_t keyid;
|
||||||
|
|
||||||
keyid = this->key->get_id(this->key, id->get_type(id));
|
if (id->get_type(id) != ID_KEY_ID ||
|
||||||
if (!keyid || !keyid->equals(keyid, id))
|
!this->key->get_fingerprint(this->key, KEY_ID_PUBKEY_SHA1, &keyid) ||
|
||||||
|
!chunk_equals(keyid, id->get_encoding(id)))
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user