Home GnuPG
Diffusion GnuPG e97548223948

dirmngr: Print a SOURCE status for WKD requests.

Description

dirmngr: Print a SOURCE status for WKD requests.

* dirmngr/server.c (cmd_wkd_get): Print a SOURCE status.

This status allows to see whether the the WKD requests has been
resolved from the standard address or from a SRV record derived one.
We return only host and port and not the .well-known suffix because
that is obvious. HTTP redirects are not taken in account because they
may chnage at any time due to load balancing etc and not relevant for
gpg which may use the URL to detect changes in the WKD results.

For example my current setup returns

S SOURCE https://wkd.gnupg.org

for wk@gnupg.org. Without a SRV record

S SOURCE https://gnupg.org

would have been returned.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 24 2017, 6:21 PM
Parents
rG9b88cfa0962f: dirmngr: New function dirmngr_status_printf.
Branches
Unknown
Tags
Unknown