diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-02 19:42:38 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-02 19:42:38 +0000 |
commit | 2ead5c3b4ced4f49e06a89584465413410b5ba48 (patch) | |
tree | 48e1bb52c0e107927c0f5704e3d56bcddc187f8a /usr.bin/ssh/rsa.c | |
parent | e0db7ed9032e37a2f0f4b9704101d7745e3b8b4a (diff) |
replace assert() with error, fatal or packet_disconnect
Diffstat (limited to 'usr.bin/ssh/rsa.c')
-rw-r--r-- | usr.bin/ssh/rsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/rsa.c b/usr.bin/ssh/rsa.c index f2e5d5f1212..9bdde7d1049 100644 --- a/usr.bin/ssh/rsa.c +++ b/usr.bin/ssh/rsa.c @@ -35,7 +35,7 @@ Description of the RSA algorithm can be found e.g. from the following sources: */ #include "includes.h" -RCSID("$Id: rsa.c,v 1.5 1999/10/16 23:54:12 provos Exp $"); +RCSID("$Id: rsa.c,v 1.6 1999/11/02 19:42:36 markus Exp $"); #include "rsa.h" #include "ssh.h" @@ -70,8 +70,8 @@ rsa_generate_key(RSA *prv, RSA *pub, unsigned int bits) } key = RSA_generate_key(bits, 35, NULL, NULL); - - assert(key != NULL); + if (key == NULL) + fatal("rsa_generate_key: key generation failed."); /* Copy public key parameters */ pub->n = BN_new(); |