~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The Zlib module now uses dynamically allocated contexts. I think
[sgt/putty]
/
sshbn.c
diff --git
a/sshbn.c
b/sshbn.c
index
40f9560
..
8246e25
100644
(file)
--- a/
sshbn.c
+++ b/
sshbn.c
@@
-482,7
+482,7
@@
void decbn(Bignum bn)
bn[i]--;
}
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;
{
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.
*/
* 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;
int i;
int w, b;