mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 04:55:02 -05:00
Oops - remove SHA debugging from ssh2
[originally from svn r578]
This commit is contained in:
parent
4109ac3dfc
commit
1864344036
5
ssh.c
5
ssh.c
@ -730,13 +730,8 @@ static int ssh_versioncmp(char *a, char *b) {
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
void sha_string(SHA_State *s, void *str, int len) {
|
void sha_string(SHA_State *s, void *str, int len) {
|
||||||
unsigned char lenblk[4];
|
unsigned char lenblk[4];
|
||||||
static FILE *fp;
|
|
||||||
PUT_32BIT(lenblk, len);
|
PUT_32BIT(lenblk, len);
|
||||||
if (!fp) fp = fopen("h:\\statham\\windows\\putty\\data","wb");
|
|
||||||
fwrite(lenblk, 4, 1, fp);
|
|
||||||
SHA_Bytes(s, lenblk, 4);
|
SHA_Bytes(s, lenblk, 4);
|
||||||
fwrite(str, len, 1, fp);
|
|
||||||
fflush(fp);
|
|
||||||
SHA_Bytes(s, str, len);
|
SHA_Bytes(s, str, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user