pullup #2873
[pkgsrc.git] / security / stegtunnel / patches / patch-af
1 $NetBSD$
2
3 --- crypto.c    2007/10/03 18:50:14     1.1
4 +++ crypto.c    2007/10/03 18:51:13
5 @@ -76,7 +76,7 @@
6    passlen = strlen(passphrase);
7  
8    SHA1Reset(&sha1_ctx);
9 -  SHA1Input(&sha1_ctx, passphrase, passlen);
10 +  SHA1Input(&sha1_ctx, (unsigned char *)passphrase, passlen);
11    SHA1Result(&sha1_ctx, st_ctx->pw_hash);
12    for(c = 0; c < passlen; c++) {
13      passphrase[c] = 0;
14 @@ -156,7 +156,6 @@
15    struct ip_hdr *ip_header;
16    struct tcp_hdr *tcp_header;
17    uint8_t *tmp_pkt;
18 -  int i;
19  
20    ip_header = (struct ip_hdr *)packet;
21    tcp_header = (struct tcp_hdr *) (packet + (ip_header->ip_hl * 4));