diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-21 17:03:00 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-21 17:03:00 +0200 |
commit | c84b139a876adc6e755c674e5c3900631be531d2 (patch) | |
tree | e5524deb5d287d624b3f8b18acab61079932bcb2 /src/charon/plugins/load_tester/load_tester_creds.c | |
parent | 640ed4d5a502491c6d87b6f3eab492dfa3bcc06d (diff) | |
download | strongswan-c84b139a876adc6e755c674e5c3900631be531d2.tar.bz2 strongswan-c84b139a876adc6e755c674e5c3900631be531d2.tar.xz |
Credential backends use has_fingerprint() methods to select keys/certificates
Diffstat (limited to 'src/charon/plugins/load_tester/load_tester_creds.c')
-rw-r--r-- | src/charon/plugins/load_tester/load_tester_creds.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/charon/plugins/load_tester/load_tester_creds.c b/src/charon/plugins/load_tester/load_tester_creds.c index ec3606c0b..239a10467 100644 --- a/src/charon/plugins/load_tester/load_tester_creds.c +++ b/src/charon/plugins/load_tester/load_tester_creds.c @@ -195,11 +195,7 @@ static enumerator_t* create_private_enumerator(private_load_tester_creds_t *this } if (id) { - chunk_t keyid; - - if (!this->private->get_fingerprint(this->private, - KEY_ID_PUBKEY_SHA1, &keyid) || - !chunk_equals(keyid, id->get_encoding(id))) + if (!this->private->has_fingerprint(this->private, id->get_encoding(id))) { return NULL; } @@ -218,7 +214,6 @@ static enumerator_t* create_cert_enumerator(private_load_tester_creds_t *this, public_key_t *peer_key, *ca_key; u_int32_t serial; time_t now; - chunk_t keyid; if (this->ca == NULL) { @@ -239,8 +234,7 @@ static enumerator_t* create_cert_enumerator(private_load_tester_creds_t *this, ca_key = this->ca->get_public_key(this->ca); if (ca_key) { - if (ca_key->get_fingerprint(ca_key, KEY_ID_PUBKEY_SHA1, &keyid) && - chunk_equals(keyid, id->get_encoding(id))) + if (ca_key->has_fingerprint(ca_key, id->get_encoding(id))) { ca_key->destroy(ca_key); return enumerator_create_single(this->ca, NULL); |