bn: fix BN_DEBUG + BN_DEBUG_RAND support
authorGeoff Thorpe <geoff@openssl.org>
Thu, 6 Oct 2016 13:25:22 +0000 (08:25 -0500)
committerRichard Levitte <levitte@openssl.org>
Wed, 1 Feb 2017 02:17:37 +0000 (03:17 +0100)
commitf8114d7d775b5802f283a9325635f9f2732e0341
tree5df0d5779742c32a64cffd48435837f39abe6f6b
parentae45175406f8dbda8cb77abcc9da5374c35a25ba
bn: fix BN_DEBUG + BN_DEBUG_RAND support

Couple of updates to make this code work properly again;
* use OPENSSL_assert() instead of assert() (and #include <assert.h>)
* the circular-dependency-avoidance uses RAND_bytes() (not pseudo)

Change-Id: Iefb5a9dd73f71fd81c1268495c54a64378955354
Signed-off-by: Geoff Thorpe <geoff@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1672)
(cherry picked from commit 0b50ac1a0fe907f4effcf3f2f36dac32523938c5)
crypto/bn/bn_lcl.h