diff options
author | 2003-11-10 16:23:41 +0000 | |
---|---|---|
committer | 2003-11-10 16:23:41 +0000 | |
commit | 69c754671be6c2948a53b5b7b200caf1cc4f6f11 (patch) | |
tree | 589f35e40471b718fbcb98707505d342580c3af2 /usr.bin/ssh/bufaux.c | |
parent | Fine-grained handling of errors, pkg already installed is not an error. (diff) | |
download | wireguard-openbsd-69c754671be6c2948a53b5b7b200caf1cc4f6f11.tar.xz wireguard-openbsd-69c754671be6c2948a53b5b7b200caf1cc4f6f11.zip |
constify. ok markus@ & djm@
Diffstat (limited to 'usr.bin/ssh/bufaux.c')
-rw-r--r-- | usr.bin/ssh/bufaux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/bufaux.c b/usr.bin/ssh/bufaux.c index 1df15b54835..339d744355c 100644 --- a/usr.bin/ssh/bufaux.c +++ b/usr.bin/ssh/bufaux.c @@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $"); +RCSID("$OpenBSD: bufaux.c,v 1.31 2003/11/10 16:23:41 jakob Exp $"); #include <openssl/bn.h> #include "bufaux.h" @@ -50,7 +50,7 @@ RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $"); * by (bits+7)/8 bytes of binary data, msb first. */ void -buffer_put_bignum(Buffer *buffer, BIGNUM *value) +buffer_put_bignum(Buffer *buffer, const BIGNUM *value) { int bits = BN_num_bits(value); int bin_size = (bits + 7) / 8; @@ -101,7 +101,7 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) * Stores an BIGNUM in the buffer in SSH2 format. */ void -buffer_put_bignum2(Buffer *buffer, BIGNUM *value) +buffer_put_bignum2(Buffer *buffer, const BIGNUM *value) { u_int bytes = BN_num_bytes(value) + 1; u_char *buf = xmalloc(bytes); |