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:41 +0000 (18:42 +0100)
commit2c3673cd3f76989eab6e243b1e51778e498b1222
tree8ea40ee5b8d050b8a62eb750ddef42284e648fb3
parentba5f75d53e91018434553c88b138a5c482e08b5a
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 >
crypto/rand/md_rand.c
crypto/rand/rand_lcl.h
crypto/rand/rand_lib.c