Cache only support fingerprint types

This commit is contained in:
Andreas Steffen
2014-12-12 13:08:40 +01:00
parent 8aaf36c6e3
commit 3e654a13ee
@@ -245,8 +245,10 @@ METHOD(public_key_t, get_fingerprint, bool,
}
success = bliss_public_key_fingerprint(this->set->oid, this->A,
this->set, type, fp);
lib->encoding->cache(lib->encoding, type, this, *fp);
if (success)
{
lib->encoding->cache(lib->encoding, type, this, *fp);
}
return success;
}