annotate src/scanner.cpp @ 6:cea50d98a6cf

start work on content url scanner
author carl
date Wed, 21 Apr 2004 22:39:46 -0700
parents
children 93ff6d1ef647
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1 // normal stuff
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
2 #include <stdio.h>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
3 #include <stdlib.h>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
5 // needed for std c++ collections
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
6 #include <set>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
7 #include <map>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
8 #include <list>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
10 // for the dns resolver
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
11 #include <netinet/in.h>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
12 #include <arpa/nameser.h>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
13 #include <resolv.h>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
14
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
15 // misc stuff needed here
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
16 #include <ctype.h>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
17 #include <fstream>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
18
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
19 static char* version="$Id$";
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
20
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
21 using namespace std;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
22
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
23 enum status {oksofar, // not rejected yet
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
24 white, // whitelisted by envelope from
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
25 black, // blacklisted by envelope from or to
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
26 reject}; // rejected by a dns list
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
27
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
28 enum state {//u_init, // url decoder states
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
29
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
30 m_init, // mime decoder states
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
31 m_eq,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
32 m_1,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
33
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
34 e_init, // html entity decoder states
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
35 e_amp,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
36 e_num,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
37
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
38 b_init, // base64 decoder states
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
39 b_lf,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
40 b_lf2,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
41 b_64,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
42
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
43 end_state, // counter for number of columns in the table
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
44
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
45 m_2, // temporary mime states
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
46 m_cr,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
47 m_nl,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
48 e_semi,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
49 b_cr,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
50 };
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
51
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
52 typedef state PARSE[end_state];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
53
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
54 static PARSE parse_table[256] = {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
55 // m_init, m_eq, m_1, e_init, e_amp, e_num, b_init, b_lf, b_lf2, b_64
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
56
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
57 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x00
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
58 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x01
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
59 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x02
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
60 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x03
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
61 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x04
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
62 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x05
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
63 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x06
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
64 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x07
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
65 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x08
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
66 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x09
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
67 {m_init, m_nl, m_init, e_init, e_init, e_init, b_lf, b_init, b_lf2, b_init, }, // 0x0a <lf>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
68 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x0b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
69 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x0c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
70 {m_init, m_cr, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_cr, }, // 0x0d <cr>
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
71 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x0e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
72 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x0f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
73 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x10
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
74 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x11 xon char
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
75 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x12
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
76 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x13 xoff char
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
77 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x14
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
78 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x15
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
79 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x16
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
80 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x17
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
81 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x18
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
82 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x19
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
83 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x1a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
84 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x1b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
85 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x1c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
86 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x1d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
87 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x1e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
88 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x1f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
89 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x20 space
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
90 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x21 !
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
91 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x22 ""
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
92 {m_init, m_init, m_init, e_init, e_num, e_init, b_init, b_init, b_init, b_init, }, // 0x23 #
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
93 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x24 $
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
94 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x25 %
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
95 {m_init, m_init, m_init, e_amp, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x26 &
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
96 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x27 '
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
97 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x28 (
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
98 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x29 )
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
99 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x2A *
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
100 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x2B +
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
101 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x2C ,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
102 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x2D -
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
103 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x2E .
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
104 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x2F /
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
105 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x30 0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
106 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x31 1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
107 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x32 2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
108 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x33 3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
109 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x34 4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
110 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x35 5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
111 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x36 6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
112 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x37 7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
113 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x38 8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
114 {m_init, m_1, m_2, e_init, e_init, e_num, b_init, b_64, b_64, b_64, }, // 0x39 9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
115 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x3A :
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
116 {m_init, m_init, m_init, e_init, e_init, e_semi, b_init, b_init, b_init, b_init, }, // 0x3B ;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
117 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x3C <
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
118 {m_eq, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x3D =
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
119 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x3E >
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
120 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x3F ?
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
121 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x40 @
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
122 {m_init, m_1, m_2, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x41 A
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
123 {m_init, m_1, m_2, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x42 B
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
124 {m_init, m_1, m_2, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x43 C
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
125 {m_init, m_1, m_2, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x44 D
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
126 {m_init, m_1, m_2, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x45 E
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
127 {m_init, m_1, m_2, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x46 F
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
128 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x47 G
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
129 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x48 H
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
130 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x49 I
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
131 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x4A J
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
132 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x4B K
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
133 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x4C L
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
134 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x4D M
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
135 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x4E N
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
136 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x4F O
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
137 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x50 P
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
138 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x51 Q
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
139 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x52 R
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
140 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x53 S
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
141 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x54 T
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
142 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x55 U
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
143 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x56 V
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
144 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x57 W
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
145 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x58 X
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
146 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x59 Y
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
147 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x5A Z
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
148 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x5B [
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
149 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x5C brace
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
150 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x5D ]
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
151 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x5E ^
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
152 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x5F _
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
153 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x60 `
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
154 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x61 a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
155 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x62 b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
156 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x63 c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
157 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x64 d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
158 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x65 e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
159 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x66 f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
160 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x67 g
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
161 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x68 h
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
162 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x69 i
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
163 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x6A j
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
164 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x6B k
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
165 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x6C l
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
166 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x6D m
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
167 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x6E n
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
168 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x6F o
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
169 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x70 p
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
170 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x71 q
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
171 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x72 r
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
172 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x73 s
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
173 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x74 t
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
174 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x75 u
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
175 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x76 v
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
176 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x77 w
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
177 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x78 x
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
178 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x79 y
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
179 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_64, b_64, b_64, }, // 0x7A z
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
180 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x7B {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
181 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x7C |
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
182 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x7D }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
183 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x7E ~
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
184 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x7f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
185 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x80
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
186 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x81
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
187 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x82
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
188 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x83
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
189 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x84
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
190 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x85
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
191 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x86
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
192 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x87
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
193 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x88
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
194 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x89
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
195 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x8a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
196 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x8b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
197 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x8c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
198 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x8d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
199 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x8e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
200 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x8f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
201 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x90
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
202 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x91
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
203 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x92
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
204 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x93
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
205 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x94
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
206 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x95
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
207 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x96
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
208 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x97
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
209 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x98
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
210 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x99
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
211 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x9a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
212 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x9b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
213 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x9c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
214 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x9d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
215 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x9e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
216 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0x9f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
217 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
218 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
219 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
220 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
221 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
222 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
223 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
224 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
225 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
226 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xa9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
227 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xaa
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
228 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xab
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
229 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xac
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
230 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xad
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
231 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xae
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
232 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xaf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
233 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
234 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
235 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
236 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
237 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
238 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
239 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
240 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
241 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
242 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xb9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
243 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xba
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
244 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xbb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
245 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xbc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
246 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xbd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
247 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xbe
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
248 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xbf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
249 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
250 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
251 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
252 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
253 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
254 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
255 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
256 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
257 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
258 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xc9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
259 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xca
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
260 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xcb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
261 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xcc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
262 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xcd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
263 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xce
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
264 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xcf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
265 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
266 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
267 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
268 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
269 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
270 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
271 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
272 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
273 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
274 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xd9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
275 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xda
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
276 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xdb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
277 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xdc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
278 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xdd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
279 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xde
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
280 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xdf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
281 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
282 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
283 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
284 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
285 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
286 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
287 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
288 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
289 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
290 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xe9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
291 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xea
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
292 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xeb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
293 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xec
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
294 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xed
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
295 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xee
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
296 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xef
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
297 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
298 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
299 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
300 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
301 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
302 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
303 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
304 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
305 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
306 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xf9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
307 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xfa
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
308 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xfb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
309 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xfc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
310 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xfd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
311 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xfe
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
312 {m_init, m_init, m_init, e_init, e_init, e_init, b_init, b_init, b_init, b_init, }, // 0xff
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
313 };
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
314
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
315
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
316 u_char hex_decode[256] = {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
317 0, // 0x00
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
318 0, // 0x01
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
319 0, // 0x02
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
320 0, // 0x03
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
321 0, // 0x04
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
322 0, // 0x05
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
323 0, // 0x06
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
324 0, // 0x07
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
325 0, // 0x08
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
326 0, // 0x09
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
327 0, // 0x0a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
328 0, // 0x0b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
329 0, // 0x0c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
330 0, // 0x0d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
331 0, // 0x0e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
332 0, // 0x0f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
333 0, // 0x10
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
334 0, // 0x11 xon char
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
335 0, // 0x12
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
336 0, // 0x13 xoff char
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
337 0, // 0x14
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
338 0, // 0x15
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
339 0, // 0x16
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
340 0, // 0x17
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
341 0, // 0x18
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
342 0, // 0x19
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
343 0, // 0x1a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
344 0, // 0x1b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
345 0, // 0x1c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
346 0, // 0x1d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
347 0, // 0x1e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
348 0, // 0x1f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
349 0, // 0x20 space
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
350 0, // 0x21 !
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
351 0, // 0x22 ""
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
352 0, // 0x23 #
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
353 0, // 0x24 $
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
354 0, // 0x25 %
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
355 0, // 0x26 &
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
356 0, // 0x27 '
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
357 0, // 0x28 (
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
358 0, // 0x29 )
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
359 0, // 0x2A *
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
360 0, // 0x2B +
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
361 0, // 0x2C ,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
362 0, // 0x2D -
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
363 0, // 0x2E .
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
364 0, // 0x2F /
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
365 0, // 0x30 0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
366 1, // 0x31 1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
367 2, // 0x32 2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
368 3, // 0x33 3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
369 4, // 0x34 4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
370 5, // 0x35 5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
371 6, // 0x36 6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
372 7, // 0x37 7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
373 8, // 0x38 8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
374 9, // 0x39 9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
375 0, // 0x3A :
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
376 0, // 0x3B ;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
377 0, // 0x3C <
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
378 0, // 0x3D =
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
379 0, // 0x3E >
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
380 0, // 0x3F ?
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
381 0, // 0x40 @
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
382 10, // 0x41 A
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
383 11, // 0x42 B
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
384 12, // 0x43 C
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
385 13, // 0x44 D
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
386 14, // 0x45 E
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
387 15, // 0x46 F
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
388 0, // 0x47 G
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
389 0, // 0x48 H
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
390 0, // 0x49 I
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
391 0, // 0x4A J
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
392 0, // 0x4B K
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
393 0, // 0x4C L
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
394 0, // 0x4D M
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
395 0, // 0x4E N
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
396 0, // 0x4F O
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
397 0, // 0x50 P
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
398 0, // 0x51 Q
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
399 0, // 0x52 R
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
400 0, // 0x53 S
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
401 0, // 0x54 T
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
402 0, // 0x55 U
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
403 0, // 0x56 V
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
404 0, // 0x57 W
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
405 0, // 0x58 X
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
406 0, // 0x59 Y
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
407 0, // 0x5A Z
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
408 0, // 0x5B [
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
409 0, // 0x5C brace
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
410 0, // 0x5D ]
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
411 0, // 0x5E ^
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
412 0, // 0x5F _
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
413 0, // 0x60 `
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
414 10, // 0x61 a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
415 11, // 0x62 b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
416 12, // 0x63 c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
417 13, // 0x64 d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
418 14, // 0x65 e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
419 15, // 0x66 f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
420 0, // 0x67 g
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
421 0, // 0x68 h
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
422 0, // 0x69 i
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
423 0, // 0x6A j
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
424 0, // 0x6B k
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
425 0, // 0x6C l
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
426 0, // 0x6D m
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
427 0, // 0x6E n
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
428 0, // 0x6F o
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
429 0, // 0x70 p
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
430 0, // 0x71 q
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
431 0, // 0x72 r
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
432 0, // 0x73 s
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
433 0, // 0x74 t
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
434 0, // 0x75 u
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
435 0, // 0x76 v
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
436 0, // 0x77 w
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
437 0, // 0x78 x
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
438 0, // 0x79 y
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
439 0, // 0x7A z
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
440 0, // 0x7B {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
441 0, // 0x7C |
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
442 0, // 0x7D }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
443 0, // 0x7E ~
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
444 0, // 0x7f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
445 0, // 0x80
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
446 0, // 0x81
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
447 0, // 0x82
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
448 0, // 0x83
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
449 0, // 0x84
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
450 0, // 0x85
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
451 0, // 0x86
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
452 0, // 0x87
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
453 0, // 0x88
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
454 0, // 0x89
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
455 0, // 0x8a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
456 0, // 0x8b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
457 0, // 0x8c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
458 0, // 0x8d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
459 0, // 0x8e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
460 0, // 0x8f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
461 0, // 0x90
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
462 0, // 0x91
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
463 0, // 0x92
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
464 0, // 0x93
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
465 0, // 0x94
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
466 0, // 0x95
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
467 0, // 0x96
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
468 0, // 0x97
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
469 0, // 0x98
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
470 0, // 0x99
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
471 0, // 0x9a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
472 0, // 0x9b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
473 0, // 0x9c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
474 0, // 0x9d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
475 0, // 0x9e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
476 0, // 0x9f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
477 0, // 0xa0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
478 0, // 0xa1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
479 0, // 0xa2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
480 0, // 0xa3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
481 0, // 0xa4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
482 0, // 0xa5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
483 0, // 0xa6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
484 0, // 0xa7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
485 0, // 0xa8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
486 0, // 0xa9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
487 0, // 0xaa
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
488 0, // 0xab
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
489 0, // 0xac
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
490 0, // 0xad
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
491 0, // 0xae
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
492 0, // 0xaf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
493 0, // 0xb0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
494 0, // 0xb1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
495 0, // 0xb2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
496 0, // 0xb3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
497 0, // 0xb4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
498 0, // 0xb5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
499 0, // 0xb6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
500 0, // 0xb7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
501 0, // 0xb8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
502 0, // 0xb9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
503 0, // 0xba
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
504 0, // 0xbb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
505 0, // 0xbc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
506 0, // 0xbd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
507 0, // 0xbe
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
508 0, // 0xbf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
509 0, // 0xc0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
510 0, // 0xc1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
511 0, // 0xc2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
512 0, // 0xc3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
513 0, // 0xc4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
514 0, // 0xc5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
515 0, // 0xc6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
516 0, // 0xc7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
517 0, // 0xc8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
518 0, // 0xc9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
519 0, // 0xca
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
520 0, // 0xcb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
521 0, // 0xcc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
522 0, // 0xcd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
523 0, // 0xce
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
524 0, // 0xcf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
525 0, // 0xd0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
526 0, // 0xd1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
527 0, // 0xd2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
528 0, // 0xd3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
529 0, // 0xd4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
530 0, // 0xd5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
531 0, // 0xd6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
532 0, // 0xd7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
533 0, // 0xd8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
534 0, // 0xd9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
535 0, // 0xda
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
536 0, // 0xdb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
537 0, // 0xdc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
538 0, // 0xdd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
539 0, // 0xde
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
540 0, // 0xdf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
541 0, // 0xe0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
542 0, // 0xe1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
543 0, // 0xe2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
544 0, // 0xe3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
545 0, // 0xe4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
546 0, // 0xe5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
547 0, // 0xe6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
548 0, // 0xe7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
549 0, // 0xe8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
550 0, // 0xe9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
551 0, // 0xea
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
552 0, // 0xeb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
553 0, // 0xec
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
554 0, // 0xed
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
555 0, // 0xee
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
556 0, // 0xef
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
557 0, // 0xf0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
558 0, // 0xf1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
559 0, // 0xf2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
560 0, // 0xf3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
561 0, // 0xf4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
562 0, // 0xf5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
563 0, // 0xf6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
564 0, // 0xf7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
565 0, // 0xf8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
566 0, // 0xf9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
567 0, // 0xfa
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
568 0, // 0xfb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
569 0, // 0xfc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
570 0, // 0xfd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
571 0, // 0xfe
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
572 0, // 0xff
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
573 };
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
574 u_char b64_decode[256] = {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
575 0, // 0x00
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
576 0, // 0x01
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
577 0, // 0x02
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
578 0, // 0x03
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
579 0, // 0x04
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
580 0, // 0x05
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
581 0, // 0x06
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
582 0, // 0x07
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
583 0, // 0x08
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
584 0, // 0x09
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
585 0, // 0x0a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
586 0, // 0x0b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
587 0, // 0x0c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
588 0, // 0x0d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
589 0, // 0x0e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
590 0, // 0x0f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
591 0, // 0x10
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
592 0, // 0x11 xon char
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
593 0, // 0x12
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
594 0, // 0x13 xoff char
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
595 0, // 0x14
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
596 0, // 0x15
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
597 0, // 0x16
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
598 0, // 0x17
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
599 0, // 0x18
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
600 0, // 0x19
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
601 0, // 0x1a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
602 0, // 0x1b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
603 0, // 0x1c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
604 0, // 0x1d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
605 0, // 0x1e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
606 0, // 0x1f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
607 0, // 0x20 space
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
608 0, // 0x21 !
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
609 0, // 0x22 ""
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
610 0, // 0x23 #
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
611 0, // 0x24 $
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
612 0, // 0x25 %
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
613 0, // 0x26 &
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
614 0, // 0x27 '
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
615 0, // 0x28 (
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
616 0, // 0x29 )
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
617 0, // 0x2A *
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
618 62, // 0x2B +
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
619 0, // 0x2C ,
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
620 0, // 0x2D -
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
621 0, // 0x2E .
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
622 63, // 0x2F /
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
623 52, // 0x30 0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
624 53, // 0x31 1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
625 54, // 0x32 2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
626 55, // 0x33 3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
627 56, // 0x34 4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
628 57, // 0x35 5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
629 58, // 0x36 6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
630 59, // 0x37 7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
631 60, // 0x38 8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
632 61, // 0x39 9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
633 0, // 0x3A :
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
634 0, // 0x3B ;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
635 0, // 0x3C <
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
636 0, // 0x3D =
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
637 0, // 0x3E >
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
638 0, // 0x3F ?
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
639 0, // 0x40 @
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
640 0, // 0x41 A
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
641 1, // 0x42 B
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
642 2, // 0x43 C
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
643 3, // 0x44 D
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
644 4, // 0x45 E
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
645 5, // 0x46 F
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
646 6, // 0x47 G
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
647 7, // 0x48 H
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
648 8, // 0x49 I
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
649 9, // 0x4A J
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
650 10, // 0x4B K
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
651 11, // 0x4C L
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
652 12, // 0x4D M
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
653 13, // 0x4E N
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
654 14, // 0x4F O
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
655 15, // 0x50 P
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
656 16, // 0x51 Q
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
657 17, // 0x52 R
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
658 18, // 0x53 S
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
659 19, // 0x54 T
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
660 20, // 0x55 U
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
661 21, // 0x56 V
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
662 22, // 0x57 W
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
663 23, // 0x58 X
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
664 24, // 0x59 Y
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
665 25, // 0x5A Z
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
666 0, // 0x5B [
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
667 0, // 0x5C brace
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
668 0, // 0x5D ]
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
669 0, // 0x5E ^
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
670 0, // 0x5F _
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
671 0, // 0x60 `
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
672 26, // 0x61 a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
673 27, // 0x62 b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
674 28, // 0x63 c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
675 29, // 0x64 d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
676 30, // 0x65 e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
677 31, // 0x66 f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
678 32, // 0x67 g
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
679 33, // 0x68 h
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
680 34, // 0x69 i
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
681 35, // 0x6A j
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
682 36, // 0x6B k
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
683 37, // 0x6C l
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
684 38, // 0x6D m
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
685 39, // 0x6E n
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
686 40, // 0x6F o
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
687 41, // 0x70 p
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
688 42, // 0x71 q
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
689 43, // 0x72 r
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
690 44, // 0x73 s
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
691 45, // 0x74 t
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
692 46, // 0x75 u
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
693 47, // 0x76 v
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
694 48, // 0x77 w
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
695 49, // 0x78 x
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
696 50, // 0x79 y
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
697 51, // 0x7A z
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
698 0, // 0x7B {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
699 0, // 0x7C |
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
700 0, // 0x7D }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
701 0, // 0x7E ~
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
702 0, // 0x7f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
703 0, // 0x80
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
704 0, // 0x81
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
705 0, // 0x82
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
706 0, // 0x83
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
707 0, // 0x84
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
708 0, // 0x85
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
709 0, // 0x86
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
710 0, // 0x87
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
711 0, // 0x88
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
712 0, // 0x89
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
713 0, // 0x8a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
714 0, // 0x8b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
715 0, // 0x8c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
716 0, // 0x8d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
717 0, // 0x8e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
718 0, // 0x8f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
719 0, // 0x90
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
720 0, // 0x91
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
721 0, // 0x92
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
722 0, // 0x93
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
723 0, // 0x94
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
724 0, // 0x95
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
725 0, // 0x96
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
726 0, // 0x97
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
727 0, // 0x98
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
728 0, // 0x99
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
729 0, // 0x9a
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
730 0, // 0x9b
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
731 0, // 0x9c
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
732 0, // 0x9d
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
733 0, // 0x9e
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
734 0, // 0x9f
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
735 0, // 0xa0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
736 0, // 0xa1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
737 0, // 0xa2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
738 0, // 0xa3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
739 0, // 0xa4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
740 0, // 0xa5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
741 0, // 0xa6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
742 0, // 0xa7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
743 0, // 0xa8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
744 0, // 0xa9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
745 0, // 0xaa
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
746 0, // 0xab
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
747 0, // 0xac
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
748 0, // 0xad
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
749 0, // 0xae
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
750 0, // 0xaf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
751 0, // 0xb0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
752 0, // 0xb1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
753 0, // 0xb2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
754 0, // 0xb3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
755 0, // 0xb4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
756 0, // 0xb5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
757 0, // 0xb6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
758 0, // 0xb7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
759 0, // 0xb8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
760 0, // 0xb9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
761 0, // 0xba
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
762 0, // 0xbb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
763 0, // 0xbc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
764 0, // 0xbd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
765 0, // 0xbe
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
766 0, // 0xbf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
767 0, // 0xc0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
768 0, // 0xc1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
769 0, // 0xc2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
770 0, // 0xc3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
771 0, // 0xc4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
772 0, // 0xc5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
773 0, // 0xc6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
774 0, // 0xc7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
775 0, // 0xc8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
776 0, // 0xc9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
777 0, // 0xca
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
778 0, // 0xcb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
779 0, // 0xcc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
780 0, // 0xcd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
781 0, // 0xce
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
782 0, // 0xcf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
783 0, // 0xd0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
784 0, // 0xd1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
785 0, // 0xd2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
786 0, // 0xd3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
787 0, // 0xd4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
788 0, // 0xd5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
789 0, // 0xd6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
790 0, // 0xd7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
791 0, // 0xd8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
792 0, // 0xd9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
793 0, // 0xda
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
794 0, // 0xdb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
795 0, // 0xdc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
796 0, // 0xdd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
797 0, // 0xde
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
798 0, // 0xdf
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
799 0, // 0xe0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
800 0, // 0xe1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
801 0, // 0xe2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
802 0, // 0xe3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
803 0, // 0xe4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
804 0, // 0xe5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
805 0, // 0xe6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
806 0, // 0xe7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
807 0, // 0xe8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
808 0, // 0xe9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
809 0, // 0xea
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
810 0, // 0xeb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
811 0, // 0xec
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
812 0, // 0xed
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
813 0, // 0xee
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
814 0, // 0xef
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
815 0, // 0xf0
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
816 0, // 0xf1
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
817 0, // 0xf2
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
818 0, // 0xf3
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
819 0, // 0xf4
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
820 0, // 0xf5
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
821 0, // 0xf6
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
822 0, // 0xf7
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
823 0, // 0xf8
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
824 0, // 0xf9
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
825 0, // 0xfa
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
826 0, // 0xfb
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
827 0, // 0xfc
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
828 0, // 0xfd
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
829 0, // 0xfe
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
830 0, // 0xff
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
831 };
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
832
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
833 #define PENDING_LIMIT 1000
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
834 struct fsa {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
835 u_char pending[PENDING_LIMIT];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
836 int count;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
837 state st;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
838 state init;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
839 fsa* next;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
840
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
841 fsa(state init, fsa* next_);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
842 void push(u_char *buf, int len);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
843 };
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
844
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
845 fsa::fsa(state init_, fsa* next_) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
846 count = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
847 st = init_;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
848 init = init_;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
849 next = next_;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
850 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
851
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
852 void fsa::push(u_char *buf, int len) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
853 for (int i=0; i<len; i++) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
854 u_char c = buf[i];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
855 // guard against buffer overflow
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
856 if (count == PENDING_LIMIT-1) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
857 if (next) next->push(pending, count);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
858 else {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
859 pending[count] = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
860 fprintf(stdout, "%s", (char*)pending);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
861 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
862 count = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
863 st = init;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
864 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
865 pending[count++] = c;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
866 st = parse_table[c][st];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
867 switch (st) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
868
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
869 //////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
870 // mime decoder
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
871 case m_2: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
872 pending[0] = hex_decode[pending[1]] * 16 + hex_decode[pending[2]];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
873 count = 1;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
874 st = m_init;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
875 } // fall thru
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
876
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
877 case m_init: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
878 if (next) next->push(pending, count);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
879 else {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
880 pending[count] = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
881 fprintf(stdout, "%s", (char*)pending);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
882 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
883 count = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
884 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
885
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
886 case m_cr: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
887 count = 1;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
888 st = m_eq;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
889 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
890
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
891 case m_nl: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
892 count = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
893 st = m_init;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
894 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
895
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
896 //////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
897 // html entity decoder
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
898 case e_semi: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
899 pending[--count] = '\0'; // null terminate the digit string by overwriting the semicolon
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
900 pending[0] = atoi((const char *)pending+2);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
901 count = 1;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
902 st = e_init;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
903 } // fall thru
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
904
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
905 case e_init: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
906 if (next) next->push(pending, count);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
907 else {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
908 pending[count] = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
909 fprintf(stdout, "%s", (char*)pending);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
910 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
911 count = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
912 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
913
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
914 //////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
915 // base64 decoder
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
916 case b_lf2: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
917 count--;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
918 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
919
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
920 case b_cr: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
921 int cnt = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
922 if ((count % 4) == 1) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
923 count--;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
924 // might have proper b64 data
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
925 for (int i=0; i<count; i+=4) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
926 unsigned long a1 = b64_decode[pending[i]];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
927 unsigned long a2 = b64_decode[pending[i+1]];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
928 unsigned long a3 = b64_decode[pending[i+2]];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
929 unsigned long a4 = b64_decode[pending[i+3]];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
930 unsigned long a = (a1 << 18) | (a2 << 12) | (a3 << 6) | a4;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
931 pending[cnt++] = (a & 0x00ff0000) >> 16;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
932 pending[cnt++] = (a & 0x0000ff00) >> 8;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
933 pending[cnt++] = (a & 0x000000ff);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
934 if ((char)pending[i+3] == '=') cnt--;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
935 if ((char)pending[i+2] == '=') cnt--;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
936 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
937 count = cnt;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
938 st = b_lf2;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
939 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
940 else st = b_init;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
941 } // fall thru
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
942
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
943 case b_lf:
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
944 case b_init: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
945 if (next) next->push(pending, count);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
946 else {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
947 pending[count] = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
948 fprintf(stdout, "%s", (char*)pending);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
949 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
950 count = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
951 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
952
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
953 //////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
954 // states that just accumulate characters in the pending buffer
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
955 case e_amp:
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
956 case e_num:
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
957 case b_64:
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
958 case m_eq:
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
959 case m_1:
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
960 default: {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
961 } break;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
962 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
963 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
964 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
965
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
966
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
967
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
968 ////////////////////////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
969 // ask a dns question and get an A record answer
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
970 //
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
971 static unsigned long dns_interface(char *question);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
972 static unsigned long dns_interface(char *question) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
973 u_char answer[NS_PACKETSZ];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
974 int length = res_search(question, ns_c_in, ns_t_a, answer, sizeof(answer));
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
975 if (length < 0) return oksofar; // error in getting answer
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
976 // parse the answer
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
977 ns_msg handle;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
978 ns_rr rr;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
979 if (ns_initparse(answer, length, &handle) != 0) return oksofar;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
980 int rrnum = 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
981 while (ns_parserr(&handle, ns_s_an, rrnum++, &rr) == 0) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
982 if (ns_rr_type(rr) == ns_t_a) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
983 unsigned long address;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
984 memcpy(&address, ns_rr_rdata(rr), sizeof(address));
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
985 return reject;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
986 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
987 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
988 return 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
989 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
990
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
991 ////////////////////////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
992 // check a single dnsbl - we don't try very hard, just
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
993 // using the default resolver retry settings. If we cannot
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
994 // get an answer, we just accept the mail. The caller
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
995 // must ensure thread safety.
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
996 //
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
997 static status check_single(int ip, char *suffix);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
998 static status check_single(int ip, char *suffix) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
999 // make a dns question
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1000 const u_char *src = (const u_char *)&ip;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1001 if (src[0] == 127) return oksofar; // don't do dns lookups on localhost
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1002 char question[NS_MAXDNAME];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1003 snprintf(question, sizeof(question), "%u.%u.%u.%u.%s.", src[3], src[2], src[1], src[0], suffix);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1004 // ask the question, if we get an A record it implies a blacklisted ip address
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1005 unsigned long ans = dns_interface(question);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1006 return (ans) ? reject : oksofar;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1007 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1008
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1009
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1010 ////////////////////////////////////////////////
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1011 // scan a file for URLs
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1012 //
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1013 static void scan_file(char *fn, fsa& parser);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1014 static void scan_file(char *fn, fsa& parser) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1015 const int LINE_SIZE = 2000;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1016 char line[LINE_SIZE];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1017 ifstream is(fn);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1018 while (!is.eof()) {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1019 is.getline(line, LINE_SIZE-1);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1020 int n = strlen(line);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1021 line[n++] = '\n';
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1022 parser.push((u_char*)line, n);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1023 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1024 is.close();
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1025 }
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1026
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1027
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1028 int main(int argc, char**argv)
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1029 {
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1030 char *fn = argv[1];
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1031 fsa *html_parser = new fsa(e_init, NULL);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1032 fsa *mime_parser = new fsa(m_init, html_parser);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1033 fsa *b64_parser = new fsa(b_init, mime_parser);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1034 if (fn) scan_file(fn, *b64_parser);
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1035 return 0;
cea50d98a6cf start work on content url scanner
carl
parents:
diff changeset
1036 }