i2d_ECDSA_SIG() may return a negative value in case of error. Handle
authorbluhm <bluhm@openbsd.org>
Thu, 30 Mar 2023 15:51:09 +0000 (15:51 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 30 Mar 2023 15:51:09 +0000 (15:51 +0000)
commit22d90680305bff9b2fa1da1f8d52109d72e352fa
tree8351a0bfdb0f9eda3f8b6dcb1ea1d2da9f365617
parentd0837792d291bf4ea6c3561bff060825aa5f8f60
i2d_ECDSA_SIG() may return a negative value in case of error.  Handle
this in ossl_ecdsa_sign() and propagate the return code.
OK jsing@ tb@
lib/libcrypto/ecdsa/ecs_ossl.c