aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/getkey.c')
-rw-r--r--g10/getkey.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index d0ec1e368..09633c98a 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -40,6 +40,11 @@
#define MAX_PK_CACHE_ENTRIES 200
#define MAX_UID_CACHE_ENTRIES 200
+#if MAX_PK_CACHE_ENTRIES < 2
+ #error We need the cache for key creation
+#endif
+
+
/* A map of the all characters valid used for word_match()
* Valid characters are in in this table converted to uppercase.
* because the upper 128 bytes have special meaning, we assume
@@ -177,7 +182,7 @@ print_stats()
#endif
-static void
+void
cache_public_key( PKT_public_key *pk )
{
#if MAX_PK_CACHE_ENTRIES