diff options
Diffstat (limited to 'bufaux.c')
-rw-r--r-- | bufaux.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: bufaux.c,v 1.29 2003/04/08 20:21:28 itojun Exp $"); | 40 | RCSID("$OpenBSD: bufaux.c,v 1.30 2003/09/18 13:02:21 miod Exp $"); |
41 | 41 | ||
42 | #include <openssl/bn.h> | 42 | #include <openssl/bn.h> |
43 | #include "bufaux.h" | 43 | #include "bufaux.h" |
@@ -80,7 +80,7 @@ buffer_put_bignum(Buffer *buffer, BIGNUM *value) | |||
80 | void | 80 | void |
81 | buffer_get_bignum(Buffer *buffer, BIGNUM *value) | 81 | buffer_get_bignum(Buffer *buffer, BIGNUM *value) |
82 | { | 82 | { |
83 | int bits, bytes; | 83 | u_int bits, bytes; |
84 | u_char buf[2], *bin; | 84 | u_char buf[2], *bin; |
85 | 85 | ||
86 | /* Get the number for bits. */ | 86 | /* Get the number for bits. */ |
@@ -103,10 +103,10 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) | |||
103 | void | 103 | void |
104 | buffer_put_bignum2(Buffer *buffer, BIGNUM *value) | 104 | buffer_put_bignum2(Buffer *buffer, BIGNUM *value) |
105 | { | 105 | { |
106 | 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); |
108 | int oi; | 108 | int oi; |
109 | int hasnohigh = 0; | 109 | u_int hasnohigh = 0; |
110 | 110 | ||
111 | buf[0] = '\0'; | 111 | buf[0] = '\0'; |
112 | /* Get the value of in binary */ | 112 | /* Get the value of in binary */ |