X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fcrypto%2FRAND_load_file.pod;h=d8c134e621d16c994eff677305ad610a4fed2043;hb=847e551f39c2a218e36f95d93d45b72ec4446a2a;hp=3e7585516096fba4332f000d090b82c6d837e3a5;hpb=74235cc9ec3123ee7f51211ea054632ca0cf7c91;p=oweals%2Fopenssl.git diff --git a/doc/crypto/RAND_load_file.pod b/doc/crypto/RAND_load_file.pod index 3e75855160..d8c134e621 100644 --- a/doc/crypto/RAND_load_file.pod +++ b/doc/crypto/RAND_load_file.pod @@ -8,7 +8,7 @@ RAND_load_file, RAND_write_file, RAND_file_name - PRNG seed file #include - const char *RAND_file_name(char *buf, int num); + const char *RAND_file_name(char *buf, size_t num); int RAND_load_file(const char *filename, long max_bytes); @@ -24,8 +24,8 @@ too small for the path name, an error occurs. RAND_load_file() reads a number of bytes from file B and adds them to the PRNG. If B is non-negative, -up to to B are read; if B is -1, the complete file -is read. +up to to B are read; starting with OpenSSL 0.9.5, +if B is -1, the complete file is read. RAND_write_file() writes a number of random bytes (currently 1024) to file B which can be used to initialize the PRNG by calling