1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 17:17:37 -05:00

Diffie-Hellman key exchange now uses a dynamically allocated context.

[originally from svn r2135]
This commit is contained in:
Simon Tatham
2002-10-25 13:08:01 +00:00
parent 2317fe7e53
commit db7196c174
4 changed files with 63 additions and 49 deletions

View File

@ -482,7 +482,7 @@ void decbn(Bignum bn)
bn[i]--;
}
Bignum bignum_from_bytes(unsigned char *data, int nbytes)
Bignum bignum_from_bytes(const unsigned char *data, int nbytes)
{
Bignum result;
int w, i;
@ -509,9 +509,9 @@ Bignum bignum_from_bytes(unsigned char *data, int nbytes)
* Read an ssh1-format bignum from a data buffer. Return the number
* of bytes consumed.
*/
int ssh1_read_bignum(unsigned char *data, Bignum * result)
int ssh1_read_bignum(const unsigned char *data, Bignum * result)
{
unsigned char *p = data;
const unsigned char *p = data;
int i;
int w, b;