-/* $Id: netproc.c,v 1.35 2024/04/28 10:09:25 tb Exp $ */
+/* $Id: netproc.c,v 1.36 2024/10/07 23:47:00 sthen Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
{
struct jsmnn *j = NULL;
int rc = 0;
- char *req, *detail, *error = NULL;
+ char *req, *detail, *error = NULL, *accturi = NULL;
long lc;
if ((req = json_fmt_newacc(contact)) == NULL)
else
rc = 1;
+ if (c->kid != NULL) {
+ if (stravis(&accturi, c->kid, VIS_SAFE) != -1)
+ dodbg("account key: %s", accturi);
+ free(accturi);
+ }
+
if (rc == 0 || verbose > 1)
buf_dump(&c->buf);
free(req);
dochkacc(struct conn *c, const struct capaths *p, const char *contact)
{
int rc = 0;
- char *req;
+ char *req, *accturi = NULL;
long lc;
if ((req = json_fmt_chkacc()) == NULL)
if (c->kid == NULL)
rc = 0;
+ else {
+ if (stravis(&accturi, c->kid, VIS_SAFE) != -1)
+ dodbg("account key: %s", accturi);
+ free(accturi);
+ }
if (rc == 0 || verbose > 1)
buf_dump(&c->buf);