get_subject() of a CERT_TRUSTED_PUBKEY object returns ID_PUBKEY_INFO_SHA1 hash consis...
[strongswan.git] / src / libstrongswan / plugins / pubkey / pubkey_cert.c
index 23058ec..24a44d1 100644 (file)
@@ -65,7 +65,7 @@ static certificate_type_t get_type(private_pubkey_cert_t *this)
  */
 static identification_t* get_subject(private_pubkey_cert_t *this)
 {
-       return this->key->get_id(this->key, ID_PUBKEY_SHA1);
+       return this->key->get_id(this->key, ID_PUBKEY_INFO_SHA1);
 }
 
 /**