Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2015-04-15 05:21:27 +0300
committerAdam Langley <agl@google.com>2015-04-15 06:06:29 +0300
commit370077824821ad2cfce722a9505ac366f84c172a (patch)
tree46b554a11b5d81b9a6d9a484c7d675cc249fb5a9 /crypto/rand
parentc3ef76f32740238d9553dc123ac567920331286f (diff)
Fix Windows build failures caused by 310d4dd.
MSVC doesn't like |const size_t len| in a function definition where the declaration was just |size_t len| without the |const|. Also, MSVC needs declarations of parameterless functions to have a |void| parameter list. Change-Id: I91e01a12aca657b2ee1d653926f09cc52da2faed Reviewed-on: https://boringssl-review.googlesource.com/4329 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/hwrand.c2
-rw-r--r--crypto/rand/rand.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/hwrand.c b/crypto/rand/hwrand.c
index 0d2833aa..c5bace82 100644
--- a/crypto/rand/hwrand.c
+++ b/crypto/rand/hwrand.c
@@ -27,7 +27,7 @@ int CRYPTO_have_hwrand(void) {
}
/* CRYPTO_rdrand is defined in asm/rdrand-x86_64.pl */
-extern uint64_t CRYPTO_rdrand();
+extern uint64_t CRYPTO_rdrand(void);
void CRYPTO_hwrand(uint8_t *buf, size_t len) {
while (len >= 8) {
diff --git a/crypto/rand/rand.c b/crypto/rand/rand.c
index 66558279..ae30edb3 100644
--- a/crypto/rand/rand.c
+++ b/crypto/rand/rand.c
@@ -72,7 +72,7 @@ extern void CRYPTO_chacha_20(uint8_t *out, const uint8_t *in, size_t in_len,
const uint8_t key[32], const uint8_t nonce[8],
size_t counter);
-int RAND_bytes(uint8_t *buf, const size_t len) {
+int RAND_bytes(uint8_t *buf, size_t len) {
if (len == 0) {
return 1;
}