~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sebastian Kuschel reports that pfd_closing can be called for a socket
[sgt/putty]
/
sshsha.c
diff --git
a/sshsha.c
b/sshsha.c
index
9e9ef8c
..
a5b3a60
100644
(file)
--- a/
sshsha.c
+++ b/
sshsha.c
@@
-126,9
+126,9
@@
void SHA_Init(SHA_State * s)
s->lenhi = s->lenlo = 0;
}
s->lenhi = s->lenlo = 0;
}
-void SHA_Bytes(SHA_State * s, void *p, int len)
+void SHA_Bytes(SHA_State * s,
const
void *p, int len)
{
{
-
unsigned char *q = (
unsigned char *) p;
+
const unsigned char *q = (const
unsigned char *) p;
uint32 wordblock[16];
uint32 lenw = len;
int i;
uint32 wordblock[16];
uint32 lenw = len;
int i;
@@
-207,7
+207,7
@@
void SHA_Final(SHA_State * s, unsigned char *output)
}
}
}
}
-void SHA_Simple(void *p, int len, unsigned char *output)
+void SHA_Simple(
const
void *p, int len, unsigned char *output)
{
SHA_State s;
{
SHA_State s;