(keyserver_import_cert): Show warning if there is a CERT fingerprint,
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 27 Apr 2006 03:38:56 +0000 (03:38 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Thu, 27 Apr 2006 03:38:56 +0000 (03:38 +0000)
but no --keyserver set.

g10/ChangeLog
g10/keyserver.c

index a3ba904..192b468 100644 (file)
@@ -1,9 +1,11 @@
 2006-04-26  David Shaw  <dshaw@jabberwocky.com>
 
-       * keyserver.c (path_makes_direct): New.
+       * keyserver.c (direct_uri_map): New.
        (keyserver_spawn): Used here to add "_uri" to certain gpgkeys_xxx
        helpers when the meaning is different if a path is provided
        (i.e. ldap).
+       (keyserver_import_cert): Show warning if there is a CERT
+       fingerprint, but no --keyserver set.
 
 2006-04-22  David Shaw  <dshaw@jabberwocky.com>
 
index f5044f7..a0893f1 100644 (file)
@@ -2024,6 +2024,12 @@ keyserver_import_cert(const char *name,unsigned char **fpr,size_t *fpr_len)
 
          rc=keyserver_import_fprint(*fpr,*fpr_len,opt.keyserver);
        }
+      else
+       log_info(_("no keyserver known (use option --keyserver)\n"));
+
+      /* Give a better string here? "CERT fingerprint for \"%s\"
+        found, but no keyserver" " known (use option
+        --keyserver)\n" ? */
 
       xfree(url);
     }