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