BN_is_negative is no longer a macro in OpenSSL master

This commit is contained in:
Viktor Dukhovni
2015-03-04 19:49:40 -05:00
committed by Viktor Dukhovni
parent 529f17bbec
commit 08c628b240
2 changed files with 18 additions and 1 deletions

View File

@@ -29,7 +29,7 @@
#include <openssl/ecdh.h>
#include <openssl/dh.h>
#include <openssl/bn.h>
#ifndef BN_is_negative
#ifndef HAVE_BN_IS_NEGATIVE
#define BN_set_negative(bn, flag) ((bn)->neg=(flag)?1:0)
#define BN_is_negative(bn) ((bn)->neg != 0)
#endif