summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-09-18 13:02:21 +0000
committermiod <miod@openbsd.org>2003-09-18 13:02:21 +0000
commit14bbd5bc85ee10277301549dcca2dd480e6d6c02 (patch)
tree8ad369db8b22c535acd0405d3494d5ab56da1175 /usr.bin/ssh/ssh-keygen.c
parentspacing; (diff)
downloadwireguard-openbsd-14bbd5bc85ee10277301549dcca2dd480e6d6c02.tar.xz
wireguard-openbsd-14bbd5bc85ee10277301549dcca2dd480e6d6c02.zip
A few signedness fixes for harmless situations; markus@ ok
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 29665e5c2b2..ee7ca8f4432 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.108 2003/08/14 16:08:58 markus Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.109 2003/09/18 13:02:21 miod Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -187,8 +187,8 @@ do_convert_to_ssh2(struct passwd *pw)
static void
buffer_get_bignum_bits(Buffer *b, BIGNUM *value)
{
- int bits = buffer_get_int(b);
- int bytes = (bits + 7) / 8;
+ u_int bits = buffer_get_int(b);
+ u_int bytes = (bits + 7) / 8;
if (buffer_len(b) < bytes)
fatal("buffer_get_bignum_bits: input buffer too small: "