summaryrefslogtreecommitdiff
path: root/security/stegtunnel/patches/patch-af
blob: d8863f16ed3dfaf8d704be31744e1e01bdcdf553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-af,v 1.1.1.1 2008/05/09 21:39:17 agc Exp $

--- crypto.c	2007/10/03 18:50:14	1.1
+++ crypto.c	2007/10/03 18:51:13
@@ -76,7 +76,7 @@
   passlen = strlen(passphrase);
 
   SHA1Reset(&sha1_ctx);
-  SHA1Input(&sha1_ctx, passphrase, passlen);
+  SHA1Input(&sha1_ctx, (unsigned char *)passphrase, passlen);
   SHA1Result(&sha1_ctx, st_ctx->pw_hash);
   for(c = 0; c < passlen; c++) {
     passphrase[c] = 0;
@@ -156,7 +156,6 @@
   struct ip_hdr *ip_header;
   struct tcp_hdr *tcp_header;
   uint8_t *tmp_pkt;
-  int i;
 
   ip_header = (struct ip_hdr *)packet;
   tcp_header = (struct tcp_hdr *) (packet + (ip_header->ip_hl * 4));