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:
6
sshbn.c
6
sshbn.c
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user