From a0b5239a7c040e5694b62993ee09d3bfbc589b03 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 7 Sep 2010 19:47:41 +0200 Subject: [PATCH] work around missing BN_*_negative on Crap OS X --- d0_bignum-openssl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/d0_bignum-openssl.c b/d0_bignum-openssl.c index b4fc873..ef7985a 100644 --- a/d0_bignum-openssl.c +++ b/d0_bignum-openssl.c @@ -46,6 +46,14 @@ #include #include +// for stupid OpenSSL versions in Mac OS X +#ifndef BN_is_negative +#define BN_is_negative(a) ((a)->neg != 0) +#endif +#ifndef BN_set_negative +#define BN_set_negative(a,n) ((a)->neg = ((n) && !BN_is_zero(b))) +#endif + struct d0_bignum_s { BIGNUM z; -- 2.39.2