From: William Lallemand Date: Thu, 19 Jan 2023 10:08:42 +0000 (+0100) Subject: Revert "BUILD: ssl: add ECDSA_SIG_set0() for openssl < 1.1 or libressl < 2.7" X-Git-Tag: v2.8-dev2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2edc6d0301825327b6b5acb6acd1c68701bb104e;p=thirdparty%2Fhaproxy.git Revert "BUILD: ssl: add ECDSA_SIG_set0() for openssl < 1.1 or libressl < 2.7" This reverts commit d65791e26c12b57723f2feb7eacdbbd99601371b. Conflict with the patch which was originally written and lacks the BN_clear_free() and the NULL check. --- diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index afb29d3780..f52079034d 100644 --- a/include/haproxy/openssl-compat.h +++ b/include/haproxy/openssl-compat.h @@ -325,13 +325,6 @@ static inline X509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx) { return ctx->cert; } - -/* note: no error checking, simplified version only */ -static inline void ECDSA_SIG_set0(ECDSA_SIG *ecdsa_sig, BIGNUM *ec_R, BIGNUM *ec_S) -{ - ecdsa_sig->r = ec_R; - ecdsa_sig->s = ec_S; -} #endif #if (HA_OPENSSL_VERSION_NUMBER < 0x3000000fL)