=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keygen.c,v retrieving revision 1.128.2.3 retrieving revision 1.152 diff -u -r1.128.2.3 -r1.152 --- src/usr.bin/ssh/ssh-keygen.c 2006/11/08 00:44:05 1.128.2.3 +++ src/usr.bin/ssh/ssh-keygen.c 2006/07/26 13:57:17 1.152 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.128.2.3 2006/11/08 00:44:05 brad Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.152 2006/07/26 13:57:17 stevesk Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1994 Tatu Ylonen , Espoo, Finland @@ -12,9 +12,10 @@ * called by a name other than "ssh" or "Secure Shell". */ +#include "includes.h" + #include #include -#include #include #include @@ -23,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -34,6 +34,7 @@ #include "authfile.h" #include "uuencode.h" #include "buffer.h" +#include "bufaux.h" #include "pathnames.h" #include "log.h" #include "misc.h" @@ -215,8 +216,7 @@ if (buffer_len(b) < bytes) fatal("buffer_get_bignum_bits: input buffer too small: " "need %d have %d", bytes, buffer_len(b)); - if (BN_bin2bn(buffer_ptr(b), bytes, value) == NULL) - fatal("buffer_get_bignum_bits: BN_bin2bn failed"); + BN_bin2bn(buffer_ptr(b), bytes, value); buffer_consume(b, bytes); }