acme-client: switch op_sign() to EVP_DigestSign()
authortb <tb@openbsd.org>
Sun, 18 Dec 2022 12:22:30 +0000 (12:22 +0000)
committertb <tb@openbsd.org>
Sun, 18 Dec 2022 12:22:30 +0000 (12:22 +0000)
commit5ab53ec13d7374bb9c8bdc5443775672917af9ab
tree89554e48f18998527df294c60f8d29952f8cbbc8
parentd1e21fa9a646d3f7c9b63aca22bf976c5632dae6
acme-client: switch op_sign() to EVP_DigestSign()

EVP_DigestSign() is a bit more ergonomic than the old EVP_Sign* family,
it takes size_t instead of int and and it also allows allocating the
memory needed instead of relying on some weird estimate. This again gets
rid of a few stupid else if.

ok jsing
usr.sbin/acme-client/acctproc.c