Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: rpki-client: normalize nid printing
To:
tech@openbsd.org
Date:
Thu, 1 Feb 2024 14:19:18 +0100

Download raw body.

Thread
> Would it make sense to reverse this string as in "nid %d (%s)", nid, name?

I guess it would. I went back and forth between the two options and
ultimately preferred the name over the nid since the latter is a bit
of an implementation detail.

> In case OpenSSL adds an even longer long name it would trunkate the string
> but still show the NID number.

I think the long strings should be unambiguous, but I agree, ultimately
switching simplifies debugging which is what all this is about. So I'll
switch it to nid %d (%s).