diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-09-13 17:55:11 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-09-13 17:55:11 +0000 |
commit | c4d4b7931db2ae9e452c57d18157edd1f7759ede (patch) | |
tree | 68078253e7ffaacd34930864f7503ad6bbcb7289 | |
parent | 9dcb3ca591a71f0e3285a106e3640e433acff0bd (diff) |
Prototype changed.
-rw-r--r-- | lib/libkeynote/keynote-keygen.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libkeynote/keynote-keygen.c b/lib/libkeynote/keynote-keygen.c index 8919106fa73..b88ecd88e73 100644 --- a/lib/libkeynote/keynote-keygen.c +++ b/lib/libkeynote/keynote-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote-keygen.c,v 1.16 2001/09/03 20:14:51 deraadt Exp $ */ +/* $OpenBSD: keynote-keygen.c,v 1.17 2001/09/13 17:55:10 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -181,11 +181,7 @@ keynote_keygen(int argc, char *argv[]) (ienc == INTERNAL_ENC_ASN1) && ((enc == ENCODING_HEX) || (enc == ENCODING_BASE64))) { - if (RAND_bytes(seed, SEED_LEN) == 0) - { - fprintf(stderr, "Failed to acquire %d random bytes\n", SEED_LEN); - exit(1); - } + RAND_bytes(seed, SEED_LEN); dsa = DSA_generate_parameters(len, seed, SEED_LEN, &counter, &h, NULL #if SSLEAY_VERSION_NUMBER >= 0x0900 |