1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 02:27:32 -05:00

Add an assortment of missing consts I've just noticed.

[originally from svn r9972]
This commit is contained in:
Simon Tatham
2013-07-27 18:35:48 +00:00
parent a5fd6ad272
commit 808df44e54
7 changed files with 19 additions and 18 deletions

View File

@ -126,9 +126,9 @@ void SHA_Init(SHA_State * s)
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;
@ -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;