From 2edc6d0301825327b6b5acb6acd1c68701bb104e Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 19 Jan 2023 11:08:42 +0100 Subject: [PATCH] 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. --- include/haproxy/openssl-compat.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index afb29d378..f52079034 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)