summaryrefslogtreecommitdiffstats
path: root/g10/test-stubs.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-04-21 18:32:21 +0200
committerWerner Koch <wk@gnupg.org>2021-04-21 18:32:21 +0200
commitec36eca08cdbf6653e7362e8e0e6c5f2c75b4a60 (patch)
treea6245bac6572285ae8958148e376677169e99a2d /g10/test-stubs.c
parentkeyboxd: Fix searching for exact mail addresses. (diff)
downloadgnupg2-ec36eca08cdbf6653e7362e8e0e6c5f2c75b4a60.tar.xz
gnupg2-ec36eca08cdbf6653e7362e8e0e6c5f2c75b4a60.zip
gpg: Allow fingerprint based lookup with --locate-external-key.
* g10/keyserver.c (keyserver_import_fprint_ntds): New. * g10/getkey.c (get_pubkey_byname): Detect an attempt to search by fingerprint in no_local mode. -- See the man page. For testing use gpg --auto-key-locate local,wkd,keyserver --locate-external-key \ FINGERPRINT with at least one LDAP keyserver given in dirmngr.conf. On Windows "ntds" may be used instead or in addtion to "keyserver". Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/test-stubs.c')
-rw-r--r--g10/test-stubs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/g10/test-stubs.c b/g10/test-stubs.c
index 174af82f7..3d3c73716 100644
--- a/g10/test-stubs.c
+++ b/g10/test-stubs.c
@@ -202,6 +202,16 @@ keyserver_import_fprint (ctrl_t ctrl, const byte *fprint,size_t fprint_len,
}
int
+keyserver_import_fprint_ntds (ctrl_t ctrl,
+ const byte *fprint, size_t fprint_len)
+{
+ (void)ctrl;
+ (void)fprint;
+ (void)fprint_len;
+ return -1;
+}
+
+int
keyserver_import_cert (const char *name)
{
(void)name;