diff options
author | kris <kris@FreeBSD.org> | 2000-03-26 07:07:24 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-03-26 07:07:24 +0000 |
commit | b201b15ee1575ab28ed4f9b5a7d430e835a7c7ae (patch) | |
tree | 561c850bc04e7b62c9fc641be89ac412589219c1 /crypto/openssh/bufaux.c | |
parent | fc557ff7d97438559e69347575f5aa8ef03a5f50 (diff) | |
download | FreeBSD-src-b201b15ee1575ab28ed4f9b5a7d430e835a7c7ae.zip FreeBSD-src-b201b15ee1575ab28ed4f9b5a7d430e835a7c7ae.tar.gz |
Virgin import of OpenSSH sources dated 2000/03/25
Diffstat (limited to 'crypto/openssh/bufaux.c')
-rw-r--r-- | crypto/openssh/bufaux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/openssh/bufaux.c b/crypto/openssh/bufaux.c index 5091968..dddc41f 100644 --- a/crypto/openssh/bufaux.c +++ b/crypto/openssh/bufaux.c @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: bufaux.c,v 1.7 1999/11/24 19:53:44 markus Exp $"); +RCSID("$Id: bufaux.c,v 1.8 2000/03/16 20:56:14 markus Exp $"); #include "ssh.h" #include <ssl/bn.h> @@ -32,7 +32,7 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value) { int bits = BN_num_bits(value); int bin_size = (bits + 7) / 8; - char *buf = xmalloc(bin_size); + char unsigned *buf = xmalloc(bin_size); int oi; char msg[2]; @@ -46,7 +46,7 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value) PUT_16BIT(msg, bits); buffer_append(buffer, msg, 2); /* Store the binary data. */ - buffer_append(buffer, buf, oi); + buffer_append(buffer, (char *)buf, oi); memset(buf, 0, bin_size); xfree(buf); @@ -68,7 +68,7 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) bytes = (bits + 7) / 8; if (buffer_len(buffer) < bytes) fatal("buffer_get_bignum: input buffer too small"); - bin = buffer_ptr(buffer); + bin = (unsigned char*) buffer_ptr(buffer); BN_bin2bn(bin, bytes, value); buffer_consume(buffer, bytes); |