aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r--g10/mainproc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 6b69eefa1..2e5575dd8 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -38,6 +38,7 @@
#include "status.h"
#include "i18n.h"
#include "trustdb.h"
+#include "hkp.h"
/****************
* Structure to hold the context
@@ -840,6 +841,10 @@ check_sig_and_print( CTX c, KBNODE node )
(int)strlen(tstr), tstr, astr? astr: "?", (ulong)sig->keyid[1] );
rc = do_check_sig(c, node, NULL );
+ if( rc == G10ERR_NO_PUBKEY && opt.keyserver_name ) {
+ if( !hkp_ask_import( sig->keyid ) )
+ rc = do_check_sig(c, node, NULL );
+ }
if( !rc || rc == G10ERR_BAD_SIGN ) {
char *us = get_long_user_id_string( sig->keyid );
write_status_text( rc? STATUS_BADSIG : STATUS_GOODSIG, us );