summaryrefslogtreecommitdiff
path: root/lib/libkeynote/keynote-keygen.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-09-13 17:55:11 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-09-13 17:55:11 +0000
commitc4d4b7931db2ae9e452c57d18157edd1f7759ede (patch)
tree68078253e7ffaacd34930864f7503ad6bbcb7289 /lib/libkeynote/keynote-keygen.c
parent9dcb3ca591a71f0e3285a106e3640e433acff0bd (diff)
Prototype changed.
Diffstat (limited to 'lib/libkeynote/keynote-keygen.c')
-rw-r--r--lib/libkeynote/keynote-keygen.c8
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