diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-12-12 13:08:40 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-12-12 13:08:40 +0100 |
commit | 3e654a13eeee7534ecbd9000b1096d4b8bed8513 (patch) | |
tree | e82d15741ffec55a97572f53c17132234b889821 | |
parent | 8aaf36c6e3ac478cc771d32e1cb8e8bcedaed870 (diff) | |
download | strongswan-3e654a13eeee7534ecbd9000b1096d4b8bed8513.tar.bz2 strongswan-3e654a13eeee7534ecbd9000b1096d4b8bed8513.tar.xz |
Cache only support fingerprint types
-rw-r--r-- | src/libstrongswan/plugins/bliss/bliss_public_key.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/bliss/bliss_public_key.c b/src/libstrongswan/plugins/bliss/bliss_public_key.c index 569ad8d78..f97d0f3f7 100644 --- a/src/libstrongswan/plugins/bliss/bliss_public_key.c +++ b/src/libstrongswan/plugins/bliss/bliss_public_key.c @@ -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; } |