diff options
author | Werner Koch <[email protected]> | 2017-11-13 15:09:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-11-13 15:09:32 +0000 |
commit | 65038e6852185c20413d8f6602218ee636413b77 (patch) | |
tree | eadac25a59803cd40baa2d76c1347ea7a7347edd /dirmngr/dirmngr.c | |
parent | gpg-agent: Avoid getting stuck in shutdown pending state. (diff) | |
download | gnupg-65038e6852185c20413d8f6602218ee636413b77.tar.gz gnupg-65038e6852185c20413d8f6602218ee636413b77.zip |
dirmngr: Keep track of domains used for WKD queries
* dirmngr/domaininfo.c: New file.
* dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
* dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
known and tell domaininfo about the results.
--
This adds a registry for domain information to eventually avoid
useless queries for domains which do not support WKD. The missing
part is a background task to check whether a queried domain supports
WKD at all and to expire old entries.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r-- | dirmngr/dirmngr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index 5317c214a..2b64655e8 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -17,6 +17,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, see <https://www.gnu.org/licenses/>. + * + * SPDX-License-Identifier: GPL-3.0+ */ #include <config.h> @@ -1871,6 +1873,7 @@ handle_signal (int signo) case SIGUSR1: cert_cache_print_stats (); + domaininfo_print_stats (); break; case SIGUSR2: |