aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2014-12-12 13:08:40 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2014-12-12 13:08:40 +0100
commit3e654a13eeee7534ecbd9000b1096d4b8bed8513 (patch)
treee82d15741ffec55a97572f53c17132234b889821
parent8aaf36c6e3ac478cc771d32e1cb8e8bcedaed870 (diff)
downloadstrongswan-3e654a13eeee7534ecbd9000b1096d4b8bed8513.tar.bz2
strongswan-3e654a13eeee7534ecbd9000b1096d4b8bed8513.tar.xz
Cache only support fingerprint types
-rw-r--r--src/libstrongswan/plugins/bliss/bliss_public_key.c6
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;
}