diff options
Diffstat (limited to 'bufbn.c')
-rw-r--r-- | bufbn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bufbn.c,v 1.4 2006/11/06 21:25:28 markus Exp $*/ | 1 | /* $OpenBSD: bufbn.c,v 1.5 2007/02/14 14:32:00 stevesk Exp $*/ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -93,7 +93,7 @@ buffer_put_bignum(Buffer *buffer, const BIGNUM *value) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | /* | 95 | /* |
96 | * Retrieves an BIGNUM from the buffer. | 96 | * Retrieves a BIGNUM from the buffer. |
97 | */ | 97 | */ |
98 | int | 98 | int |
99 | buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value) | 99 | buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value) |
@@ -101,7 +101,7 @@ buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value) | |||
101 | u_int bits, bytes; | 101 | u_int bits, bytes; |
102 | u_char buf[2], *bin; | 102 | u_char buf[2], *bin; |
103 | 103 | ||
104 | /* Get the number for bits. */ | 104 | /* Get the number of bits. */ |
105 | if (buffer_get_ret(buffer, (char *) buf, 2) == -1) { | 105 | if (buffer_get_ret(buffer, (char *) buf, 2) == -1) { |
106 | error("buffer_get_bignum_ret: invalid length"); | 106 | error("buffer_get_bignum_ret: invalid length"); |
107 | return (-1); | 107 | return (-1); |
@@ -137,7 +137,7 @@ buffer_get_bignum(Buffer *buffer, BIGNUM *value) | |||
137 | } | 137 | } |
138 | 138 | ||
139 | /* | 139 | /* |
140 | * Stores an BIGNUM in the buffer in SSH2 format. | 140 | * Stores a BIGNUM in the buffer in SSH2 format. |
141 | */ | 141 | */ |
142 | int | 142 | int |
143 | buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) | 143 | buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) |