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.21 2001/12/28 14:13:13 markus Exp $"); | 40 | RCSID("$OpenBSD: bufaux.c,v 1.22 2002/01/18 18:14:17 stevesk Exp $"); |
41 | 41 | ||
42 | #include <openssl/bn.h> | 42 | #include <openssl/bn.h> |
43 | #include "bufaux.h" | 43 | #include "bufaux.h" |
@@ -90,7 +90,7 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) | |||
90 | bytes = (bits + 7) / 8; | 90 | bytes = (bits + 7) / 8; |
91 | if (buffer_len(buffer) < bytes) | 91 | if (buffer_len(buffer) < bytes) |
92 | fatal("buffer_get_bignum: input buffer too small"); | 92 | fatal("buffer_get_bignum: input buffer too small"); |
93 | bin = (u_char *) buffer_ptr(buffer); | 93 | bin = buffer_ptr(buffer); |
94 | BN_bin2bn(bin, bytes, value); | 94 | BN_bin2bn(bin, bytes, value); |
95 | buffer_consume(buffer, bytes); | 95 | buffer_consume(buffer, bytes); |
96 | } | 96 | } |
@@ -133,7 +133,7 @@ buffer_get_bignum2(Buffer *buffer, BIGNUM *value) | |||
133 | { | 133 | { |
134 | /**XXX should be two's-complement */ | 134 | /**XXX should be two's-complement */ |
135 | int len; | 135 | int len; |
136 | u_char *bin = (u_char *)buffer_get_string(buffer, (u_int *)&len); | 136 | u_char *bin = buffer_get_string(buffer, (u_int *)&len); |
137 | BN_bin2bn(bin, len, value); | 137 | BN_bin2bn(bin, len, value); |
138 | xfree(bin); | 138 | xfree(bin); |
139 | } | 139 | } |