diff options
author | David Benjamin <davidben@chromium.org> | 2016-01-26 09:09:19 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2016-01-26 18:48:41 +0300 |
commit | e5aa791a1cbd70c64a5cadaae71eda8f6d5aa992 (patch) | |
tree | f5b8745bb0b920e1da056ab86a2be2a43515dc2d /include/openssl/rand.h | |
parent | 5aae776ede56b64e0a6593fb45537687ab36092b (diff) |
Add a few more no-op stubs for cURL compatibility.
With these stubs, cURL should not need any BoringSSL #ifdefs at all,
except for their OCSP #ifdefs (which can switch to the more generally
useful OPENSSL_NO_OCSP) and the workaround for wincrypt.h macro
collisions. That we intentionally leave to the consumer rather than add
a partial hack that makes the build sensitive to include order.
(I'll send them a patch upstream once this cycles in.)
Change-Id: I815fe67e51e80e9aafa9b91ae68867ca1ff1d623
Reviewed-on: https://boringssl-review.googlesource.com/6980
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/rand.h')
-rw-r--r-- | include/openssl/rand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/rand.h b/include/openssl/rand.h index 3a8e357c..2c9c9697 100644 --- a/include/openssl/rand.h +++ b/include/openssl/rand.h @@ -75,6 +75,9 @@ OPENSSL_EXPORT void RAND_seed(const void *buf, int num); /* RAND_load_file returns a nonnegative number. */ OPENSSL_EXPORT int RAND_load_file(const char *path, long num); +/* RAND_file_name returns NULL. */ +OPENSSL_EXPORT const char *RAND_file_name(char *buf, size_t num); + /* RAND_add does nothing. */ OPENSSL_EXPORT void RAND_add(const void *buf, int num, double entropy); |