Fall back to default credential set lookup if fingerprint lookup fails

This commit is contained in:
Martin Willi 2009-09-15 08:44:10 +02:00
parent 79c6f16212
commit e4be5ef8fb
1 changed files with 5 additions and 1 deletions

View File

@ -1458,7 +1458,11 @@ static private_key_t *get_private(private_credential_manager_t *this,
/* check if this is a lookup by key ID, and do it if so */
if (id && id->get_type(id) == ID_KEY_ID)
{
return get_private_by_keyid(this, type, id);
private = get_private_by_keyid(this, type, id);
if (private)
{
return private;
}
}
/* if a specific certificate is preferred, check for a matching key */