diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-05-26 11:40:29 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-05-26 11:40:29 +0200 |
commit | 5833f57b6758bb63861b68b64f315dfae79053e5 (patch) | |
tree | be633b7709fc4fa4df3b0002f3620f81e913d820 | |
parent | c7287be8387fc1697d47422b65b7b63cf65e246a (diff) | |
download | gnutls-5833f57b6758bb63861b68b64f315dfae79053e5.tar.gz |
libgnutls-openssl: added RAND_pseudo_bytes API.
Tiny patch from Robert Millan <rmh@aybabtu.com>.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | includes/gnutls/openssl.h | 1 | ||||
-rw-r--r-- | libextra/gnutls_openssl.c | 7 |
3 files changed, 12 insertions, 1 deletions
@@ -5,8 +5,11 @@ See the end for copying conditions. * Version 2.3.12 (unreleased) +** libgnutls-openssl: added RAND_pseudo_bytes API. +Patch from Robert Millan <rmh@aybabtu.com>. + ** API and ABI modifications: -No changes since last version. +RAND_pseudo_bytes: ADDED to libgnutls-openssl. * Version 2.3.11 (released 2008-05-20) diff --git a/includes/gnutls/openssl.h b/includes/gnutls/openssl.h index b76771a4cd..c6e86cf4a1 100644 --- a/includes/gnutls/openssl.h +++ b/includes/gnutls/openssl.h @@ -305,6 +305,7 @@ extern "C" int RAND_status (void); void RAND_seed (const void *buf, int num); int RAND_bytes (unsigned char *buf, int num); + int RAND_pseudo_bytes (unsigned char *buf, int num); const char *RAND_file_name (char *buf, size_t len); int RAND_load_file (const char *name, long maxbytes); int RAND_write_file (const char *name); diff --git a/libextra/gnutls_openssl.c b/libextra/gnutls_openssl.c index b667566ea3..7618cbbc3f 100644 --- a/libextra/gnutls_openssl.c +++ b/libextra/gnutls_openssl.c @@ -964,6 +964,13 @@ RAND_bytes (unsigned char *buf, int num) return 1; } +int +RAND_pseudo_bytes (unsigned char *buf, int num) +{ + gc_pseudo_random (buf, num); + return 1; +} + const char * RAND_file_name (char *buf, size_t len) { |