From 05ccd698b986131a217f85281977e767673b27d1 Mon Sep 17 00:00:00 2001 From: Bodo Möller Date: Mon, 24 Jan 2000 10:03:24 +0000 Subject: RAND_load_file(..., -1) now means "read the complete file"; this is what we now use to read $RANDFILE / $HOME/.rnd. (Previously, after 'cat'ting lots of stuff into .rnd only the first MB would be looked at.) Bugfix for apps/enc.c: Continue if RAND_pseudo_bytes returns 0 (only -1 is an error). --- apps/enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/enc.c') diff --git a/apps/enc.c b/apps/enc.c index 842036697c..d5db3bf0e1 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -448,7 +448,7 @@ bad: "invalid hex salt value\n"); goto end; } - } else if (RAND_pseudo_bytes(salt, PKCS5_SALT_LEN) <= 0) + } else if (RAND_pseudo_bytes(salt, PKCS5_SALT_LEN) < 0) goto end; /* If -P option then don't bother writing */ if((printkey != 2) -- cgit v1.2.3