diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-11-29 00:45:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-11-29 00:45:37 +0000 |
commit | 2f2ce5860e55822cedd743d2315ab9e6cfbc5102 (patch) | |
tree | 9cfdb817febe924fbe74092753b54f54fe94fb05 | |
parent | e5bf7254963ed211b8b03ded1f50162f1ed73366 (diff) |
Add Copyright and license.
Adjust RETURN VALUES to match reality.
Delete the useless SEE ALSO section.
-rw-r--r-- | lib/libcrypto/man/RAND_load_file.3 | 68 |
1 files changed, 58 insertions, 10 deletions
diff --git a/lib/libcrypto/man/RAND_load_file.3 b/lib/libcrypto/man/RAND_load_file.3 index 8067b796b34..96724730f01 100644 --- a/lib/libcrypto/man/RAND_load_file.3 +++ b/lib/libcrypto/man/RAND_load_file.3 @@ -1,6 +1,54 @@ -.\" $OpenBSD: RAND_load_file.3,v 1.3 2016/11/25 16:34:08 jmc Exp $ +.\" $OpenBSD: RAND_load_file.3,v 1.4 2016/11/29 00:45:36 schwarze Exp $ +.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 .\" -.Dd $Mdocdate: November 25 2016 $ +.\" This file was written by Ulf Moeller <ulf@openssl.org>. +.\" Copyright (c) 2000, 2001 The OpenSSL Project. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" +.\" 3. All advertising materials mentioning features or use of this +.\" software must display the following acknowledgment: +.\" "This product includes software developed by the OpenSSL Project +.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" +.\" +.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to +.\" endorse or promote products derived from this software without +.\" prior written permission. For written permission, please contact +.\" openssl-core@openssl.org. +.\" +.\" 5. Products derived from this software may not be called "OpenSSL" +.\" nor may "OpenSSL" appear in their names without prior written +.\" permission of the OpenSSL Project. +.\" +.\" 6. Redistributions of any form whatsoever must retain the following +.\" acknowledgment: +.\" "This product includes software developed by the OpenSSL Project +.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY +.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR +.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +.\" OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: November 29 2016 $ .Dt RAND_LOAD_FILE 3 .Os .Sh NAME @@ -38,7 +86,6 @@ is too small for the path name, an error occurs. .Fn RAND_load_file used to allow for the state of the random number generator to be controlled by external sources. -.Pp It is kept for ABI compatibility but is no longer functional, and should not be used in new programs. .Pp @@ -47,21 +94,22 @@ writes a number of random bytes (currently 1024) to file .Fa filename . .Sh RETURN VALUES .Fn RAND_load_file -always returns 0. +returns +.Fa max_bytes , +or a bogus positive value if +.Fa max_bytes +is -1. .Pp .Fn RAND_write_file -returns the number of bytes written, and -1 if the bytes written were -generated without appropriate seed. +returns the number of bytes written, or a number less than or equal +to 1 if an error occurs. .Pp .Fn RAND_file_name returns a pointer to .Fa buf -on success, and +on success or .Dv NULL on error. -.Sh SEE ALSO -.Xr RAND_add 3 , -.Xr RAND_cleanup 3 .Sh HISTORY .Fn RAND_load_file , .Fn RAND_write_file , |