diff options
Diffstat (limited to 'g10/sig-check.c')
-rw-r--r-- | g10/sig-check.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c index 8267e61cf..5282281d7 100644 --- a/g10/sig-check.c +++ b/g10/sig-check.c @@ -442,6 +442,9 @@ cache_selfsig_result ( PKT_signature *sig, int result ) { byte buf[6]; + if ( opt.no_sig_cache ) + return; + buf[0] = 'G'; buf[1] = 'P'; buf[2] = 'G'; @@ -503,7 +506,7 @@ check_key_signature2( KBNODE root, KBNODE node, int *is_selfsig, #endif /* Check whether we have cached the result of a previous signature check.*/ - { + if ( !opt.no_sig_cache ) { const byte *p; size_t len; |