Fix error discrepancy.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 31 Jul 2014 20:22:23 +0000 (21:22 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 1 Aug 2014 17:42:40 +0000 (18:42 +0100)
commita9f4ebd75343f34ef314965efe0b121f693a21e6
tree68dd79a79f89366e6cd326bab8d7bdd5c0fdd413
parent604c9948a8e0f371cffa1906bfbd30a14dadaf78
Fix error discrepancy.

We can't rename ssleay_rand_bytes to md_rand_bytes_lock as this will cause
an error code discrepancy. Instead keep ssleay_rand_bytes and add an
extra parameter: since ssleay_rand_bytes is not part of the public API
this wont cause any binary compatibility issues.
Reviewed-by: Kurt Roeckx <kurt@openssl.org >
(cherry picked from commit 8068a675a7d1a657c54546f24e673e59e6707f03)
crypto/rand/md_rand.c
crypto/rand/rand_lcl.h
crypto/rand/rand_lib.c