diff options
Diffstat (limited to 'bufaux.c')
-rw-r--r-- | bufaux.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $"); | 40 | RCSID("$OpenBSD: bufaux.c,v 1.31 2003/11/10 16:23:41 jakob Exp $"); |
41 | 41 | ||
42 | #include <openssl/bn.h> | 42 | #include <openssl/bn.h> |
43 | #include "bufaux.h" | 43 | #include "bufaux.h" |
@@ -50,7 +50,7 @@ RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $"); | |||
50 | * by (bits+7)/8 bytes of binary data, msb first. | 50 | * by (bits+7)/8 bytes of binary data, msb first. |
51 | */ | 51 | */ |
52 | void | 52 | void |
53 | buffer_put_bignum(Buffer *buffer, BIGNUM *value) | 53 | buffer_put_bignum(Buffer *buffer, const BIGNUM *value) |
54 | { | 54 | { |
55 | int bits = BN_num_bits(value); | 55 | int bits = BN_num_bits(value); |
56 | int bin_size = (bits + 7) / 8; | 56 | int bin_size = (bits + 7) / 8; |
@@ -101,7 +101,7 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) | |||
101 | * Stores an BIGNUM in the buffer in SSH2 format. | 101 | * Stores an BIGNUM in the buffer in SSH2 format. |
102 | */ | 102 | */ |
103 | void | 103 | void |
104 | buffer_put_bignum2(Buffer *buffer, BIGNUM *value) | 104 | buffer_put_bignum2(Buffer *buffer, const BIGNUM *value) |
105 | { | 105 | { |
106 | u_int bytes = BN_num_bytes(value) + 1; | 106 | u_int bytes = BN_num_bytes(value) + 1; |
107 | u_char *buf = xmalloc(bytes); | 107 | u_char *buf = xmalloc(bytes); |