diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2024-10-10 09:39:36 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2024-10-10 09:39:36 +0000 |
commit | ad8c2676bf791cb881b4d30821ea259b995a6c80 (patch) | |
tree | c52442628c3b3b737de7b1cdb39e8be5117b52da /usr.sbin | |
parent | 0be86f89d67aad4d2639eb9e365ad07c39d68cf7 (diff) |
Always print account URI on first creation of an account key.
This was hidden behind -v but it seems useful to always have this when
creating a new account.
As sthen points out in his previous commit:
This is useful if you want to set a CAA DNS record restricting
issuance to a specific user account.
OK deraadt
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/acme-client/netproc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/acme-client/netproc.c b/usr.sbin/acme-client/netproc.c index 79dcadf3873..f67f8abc0b3 100644 --- a/usr.sbin/acme-client/netproc.c +++ b/usr.sbin/acme-client/netproc.c @@ -1,4 +1,4 @@ -/* $Id: netproc.c,v 1.36 2024/10/07 23:47:00 sthen Exp $ */ +/* $Id: netproc.c,v 1.37 2024/10/10 09:39:35 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -19,6 +19,7 @@ #include <ctype.h> #include <err.h> #include <errno.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -386,7 +387,7 @@ donewacc(struct conn *c, const struct capaths *p, const char *contact) if (c->kid != NULL) { if (stravis(&accturi, c->kid, VIS_SAFE) != -1) - dodbg("account key: %s", accturi); + printf("account key: %s\n", accturi); free(accturi); } |