Refactor parse_takey()
authorjob <job@openbsd.org>
Tue, 13 Feb 2024 21:18:55 +0000 (21:18 +0000)
committerjob <job@openbsd.org>
Tue, 13 Feb 2024 21:18:55 +0000 (21:18 +0000)
commit142eb7c69d11738e686b5a602dba7b51c133b53d
treebf0a17c43da1cde8c155370d148b075b9959098a
parent598fc3bdb5913329c07cd57df621fd69e9eae8ee
Refactor parse_takey()

Avoid i2d_RSAPublicKey() to help with future portability efforts.
Avoid a complication related to size_t/int for the return value
of i2d_X509_PUBKEY. While there, change the out label to 'err'.

OK tb@
usr.sbin/rpki-client/tak.c