Ulf Möller | 60b5245 | 2000-01-21 17:50:27 +0000 | [diff] [blame] | 1 | =pod |
| 2 | |
| 3 | =head1 NAME |
| 4 | |
| 5 | RAND_cleanup - erase the PRNG state |
| 6 | |
| 7 | =head1 SYNOPSIS |
| 8 | |
| 9 | #include <openssl/rand.h> |
| 10 | |
Matt Caswell | f3cd81d | 2016-04-06 11:19:55 +0100 | [diff] [blame] | 11 | #if OPENSSL_API_COMPAT < 0x10100000L |
Matt Caswell | 1d5099d | 2016-04-06 11:13:25 +0100 | [diff] [blame] | 12 | void RAND_cleanup(void) |
Matt Caswell | f3cd81d | 2016-04-06 11:19:55 +0100 | [diff] [blame] | 13 | #endif |
Ulf Möller | 60b5245 | 2000-01-21 17:50:27 +0000 | [diff] [blame] | 14 | |
| 15 | =head1 DESCRIPTION |
| 16 | |
Matt Caswell | f3cd81d | 2016-04-06 11:19:55 +0100 | [diff] [blame] | 17 | Prior to OpenSSL 1.1.0 RAND_cleanup() erases the memory used by the PRNG. This |
| 18 | function is deprecated and as of version 1.1.0 does nothing. No explicit |
| 19 | initialisation or de-initialisation is necessary. See L<OPENSSL_init_crypto(3)>. |
Ulf Möller | 60b5245 | 2000-01-21 17:50:27 +0000 | [diff] [blame] | 20 | |
| 21 | =head1 RETURN VALUE |
| 22 | |
| 23 | RAND_cleanup() returns no value. |
| 24 | |
| 25 | =head1 SEE ALSO |
| 26 | |
Richard Levitte | b97fdb5 | 2016-11-11 09:33:09 +0100 | [diff] [blame] | 27 | L<RAND_bytes(3)> |
Ulf Möller | 60b5245 | 2000-01-21 17:50:27 +0000 | [diff] [blame] | 28 | |
Matt Caswell | f3cd81d | 2016-04-06 11:19:55 +0100 | [diff] [blame] | 29 | =head1 HISTORY |
| 30 | |
| 31 | RAND_cleanup() was deprecated in OpenSSL 1.1.0. |
| 32 | |
Rich Salz | e2f9261 | 2016-05-18 11:44:05 -0400 | [diff] [blame] | 33 | =head1 COPYRIGHT |
| 34 | |
| 35 | Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. |
| 36 | |
| 37 | Licensed under the OpenSSL license (the "License"). You may not use |
| 38 | this file except in compliance with the License. You can obtain a copy |
| 39 | in the file LICENSE in the source distribution or at |
| 40 | L<https://www.openssl.org/source/license.html>. |
| 41 | |
| 42 | =cut |