diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-09-22 13:05:50 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-09-22 13:05:50 +0200 |
commit | c0815c927e177f27b1bcd6370e4c2b10caf95efe (patch) | |
tree | ce3ca9f4f2a30ef0281b095dd01ef6c66454a8f1 /bufaux.c | |
parent | - markus@cvs.openbsd.org 2003/09/18 08:49:45 (diff) | |
download | openssh-c0815c927e177f27b1bcd6370e4c2b10caf95efe.tar.xz openssh-c0815c927e177f27b1bcd6370e4c2b10caf95efe.zip |
- miod@cvs.openbsd.org 2003/09/18 13:02:21
[authfd.c bufaux.c dh.c mac.c ssh-keygen.c]
A few signedness fixes for harmless situations; markus@ ok
Diffstat (limited to 'bufaux.c')
-rw-r--r-- | bufaux.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: bufaux.c,v 1.29 2003/04/08 20:21:28 itojun Exp $"); +RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $"); #include <openssl/bn.h> #include "bufaux.h" @@ -80,7 +80,7 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value) void buffer_get_bignum(Buffer *buffer, BIGNUM *value) { - int bits, bytes; + u_int bits, bytes; u_char buf[2], *bin; /* Get the number for bits. */ @@ -103,10 +103,10 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) void buffer_put_bignum2(Buffer *buffer, BIGNUM *value) { - int bytes = BN_num_bytes(value) + 1; + u_int bytes = BN_num_bytes(value) + 1; u_char *buf = xmalloc(bytes); int oi; - int hasnohigh = 0; + u_int hasnohigh = 0; buf[0] = '\0'; /* Get the value of in binary */ |