summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_lcl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-07-31 21:22:23 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-08-01 18:42:41 +0100
commit2c3673cd3f76989eab6e243b1e51778e498b1222 (patch)
tree8ea40ee5b8d050b8a62eb750ddef42284e648fb3 /crypto/rand/rand_lcl.h
parentba5f75d53e91018434553c88b138a5c482e08b5a (diff)
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 >
Diffstat (limited to 'crypto/rand/rand_lcl.h')
-rw-r--r--crypto/rand/rand_lcl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_lcl.h b/crypto/rand/rand_lcl.h
index 725cdb31c2..0fabf8dc5d 100644
--- a/crypto/rand/rand_lcl.h
+++ b/crypto/rand/rand_lcl.h
@@ -154,6 +154,6 @@
#define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md2(), NULL)
#endif
-int md_rand_bytes_lock(unsigned char *buf, int num, int pseudo, int lock);
+int ssleay_rand_bytes(unsigned char *buf, int num, int pseudo, int lock);
#endif