~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mention the dangers of the "-pw" option.
[sgt/putty]
/
sshsha.c
diff --git
a/sshsha.c
b/sshsha.c
index
4bac4fd
..
d7c1f43
100644
(file)
--- a/
sshsha.c
+++ b/
sshsha.c
@@
-13,7
+13,7
@@
#define rol(x,y) ( ((x) << (y)) | (((uint32)x) >> (32-y)) )
#define rol(x,y) ( ((x) << (y)) | (((uint32)x) >> (32-y)) )
-void SHA_Core_Init(uint32 h[5])
+
static
void SHA_Core_Init(uint32 h[5])
{
h[0] = 0x67452301;
h[1] = 0xefcdab89;
{
h[0] = 0x67452301;
h[1] = 0xefcdab89;
@@
-195,7
+195,7
@@
void SHA_Simple(void *p, int len, unsigned char *output)
static void *sha1_make_context(void)
{
static void *sha1_make_context(void)
{
- return s
malloc(2*sizeof(SHA_State)
);
+ return s
newn(2, SHA_State
);
}
static void sha1_free_context(void *handle)
}
static void sha1_free_context(void *handle)