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:
authorMatt Braithwaite <mab@google.com>2015-06-25 02:41:10 +0300
committerAdam Langley <agl@google.com>2015-06-25 02:53:29 +0300
commit3e5e99d83445dd4e565a840e013621f8120382bc (patch)
tree9112682772422f77d3fb3d7fd8be00840078cdd2 /include/openssl/rand.h
parent50365f25ba2fbcb40e7d6139cc0fb4df2781c8ba (diff)
Dummy |RAND_set_rand_method|, |RAND_egd|, and |RAND_SSLeay|.
Change-Id: Ide555c77748b4ba8106f69b037e5ff78d81a56dc Reviewed-on: https://boringssl-review.googlesource.com/5220 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/rand.h')
-rw-r--r--include/openssl/rand.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/openssl/rand.h b/include/openssl/rand.h
index 300bf422..4e0c9afe 100644
--- a/include/openssl/rand.h
+++ b/include/openssl/rand.h
@@ -47,12 +47,33 @@ OPENSSL_EXPORT int RAND_load_file(const char *path, long num);
/* RAND_add does nothing. */
OPENSSL_EXPORT void RAND_add(const void *buf, int num, double entropy);
+/* RAND_egd returns 255. */
+OPENSSL_EXPORT int RAND_egd(const char *);
+
/* RAND_poll returns one. */
OPENSSL_EXPORT int RAND_poll(void);
/* RAND_status returns one. */
OPENSSL_EXPORT int RAND_status(void);
+/* rand_meth_st is typedefed to |RAND_METHOD| in base.h. It isn't used; it
+ * exists only to be the return type of |RAND_SSLeay|. It's
+ * external so that variables of this type can be initialized. */
+struct rand_meth_st {
+ void (*seed) (const void *buf, int num);
+ int (*bytes) (unsigned char *buf, int num);
+ void (*cleanup) (void);
+ void (*add) (const void *buf, int num, double entropy);
+ int (*pseudorand) (unsigned char *buf, int num);
+ int (*status) (void);
+};
+
+/* RAND_SSLeay returns a pointer to a dummy |RAND_METHOD|. */
+OPENSSL_EXPORT RAND_METHOD *RAND_SSLeay(void);
+
+/* RAND_set_rand_method does nothing. */
+OPENSSL_EXPORT void RAND_set_rand_method(RAND_METHOD *);
+
#if defined(__cplusplus)
} /* extern C */