]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
Revert "BUILD: ssl: add ECDSA_SIG_set0() for openssl < 1.1 or libressl < 2.7"
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 19 Jan 2023 10:08:42 +0000 (11:08 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 19 Jan 2023 10:13:24 +0000 (11:13 +0100)
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

index afb29d3780dfaabaced694ef726c4521eaece2dc..f52079034dc17b23f6873967ca9adcf181576a10 100644 (file)
@@ -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)