*/
+#include "config.h"
#include "includes.h"
RCSID("$Id$");
#include "ssh.h"
+
+#ifdef HAVE_OPENSSL
#include <openssl/bn.h>
+#endif
+#ifdef HAVE_SSL
+#include <ssl/bn.h>
+#endif
+
#include "bufaux.h"
#include "xmalloc.h"
#include "getput.h"
/* Get the value of in binary */
oi = BN_bn2bin(value, buf);
- assert(oi == bin_size);
+ if (oi != bin_size)
+ fatal("buffer_put_bignum: BN_bn2bin() failed: oi %d != bin_size %d",
+ oi, bin_size);
/* Store the number of bits in the buffer in two bytes, msb first. */
PUT_16BIT(msg, bits);