~ubuntu-branches/ubuntu/jaunty/edbrowse/jaunty-security

« back to all changes in this revision

Viewing changes to eb.p

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2006-10-20 10:47:30 UTC
  • mto: (1.1.4 upstream) (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20061020104730-02zcibd057cu2qil
Tags: upstream-3.1.2
ImportĀ upstreamĀ versionĀ 3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is machine-generated, do not hand edit. */
 
2
 
 
3
/* sourcefile=main.c */
 
4
bool junkSubject(const char *s, char key) ;
 
5
const char * mailRedirect(const char *to, const char *from, const char *reply, const char *subj) ;
 
6
bool javaOK(const char *url) ;
 
7
void eeCheck(void) ;
 
8
int main(int argc, char **argv) ;
 
9
bool runEbFunction(const char *line) ;
 
10
bool bufferToProgram(const char *cmd, const char *suffix, bool trailPercent) ;
 
11
struct MIMETYPE * findMimeBySuffix(const char *suffix) ;
 
12
struct MIMETYPE * findMimeByProtocol(const char *prot) ;
 
13
char * pluginCommand(const struct MIMETYPE *m, const char *file, const char *suffix) ;
 
14
 
 
15
/* sourcefile=buffers.c */
 
16
pst fetchLine(int n, int show) ;
 
17
int currentBufferSize(void) ;
 
18
void displayLine(int n) ;
 
19
pst inputLine(void) ;
 
20
void freeUndoLines(const char *cmap) ;
 
21
bool cxCompare(int cx) ;
 
22
bool cxActive(int cx) ;
 
23
bool cxQuit(int cx, int action) ;
 
24
void cxSwitch(int cx, bool interactive) ;
 
25
void linesReset(void) ;
 
26
bool linesComing(int n) ;
 
27
void gotoLocation(char *url, int delay, bool rf) ;
 
28
bool addTextToBuffer(const pst inbuf, int length, int destl) ;
 
29
bool readFile(const char *filename, const char *post) ;
 
30
bool unfoldBuffer(int cx, bool cr, char **data, int *len) ;
 
31
bool runCommand(const char *line) ;
 
32
bool edbrowseCommand(const char *line, bool script) ;
 
33
int sideBuffer(int cx, const char *text, const char *bufname, bool autobrowse) ;
 
34
bool browseCurrentBuffer(void) ;
 
35
void updateFieldInBuffer(int tagno, const char *newtext, int notify, bool required) ;
 
36
char * getFieldFromBuffer(int tagno) ;
 
37
int fieldIsChecked(int tagno) ;
 
38
 
 
39
/* sourcefile=url.c */
 
40
void unpercentURL(char *url) ;
 
41
bool isURL(const char *url) ;
 
42
const char * getProtURL(const char *url) ;
 
43
const char * getHostURL(const char *url) ;
 
44
const char * getHostPassURL(const char *url) ;
 
45
const char * getUserURL(const char *url) ;
 
46
const char * getPassURL(const char *url) ;
 
47
const char * getDataURL(const char *url) ;
 
48
void getDirURL(const char *url, const char **start_p, const char **end_p) ;
 
49
bool getPortLocURL(const char *url, const char **portloc, int *port) ;
 
50
int getPortURL(const char *url) ;
 
51
bool isProxyURL(const char *url) ;
 
52
int fetchHistory(const char *prev, const char *next) ;
 
53
const char * firstURL(void) ;
 
54
char * resolveURL(const char *base, const char *rel) ;
 
55
bool sameURL(const char *s, const char *t) ;
 
56
char * altText(const char *base) ;
 
57
char * encodePostData(const char *s) ;
 
58
char * decodePostData(const char *data, const char *name, int seqno) ;
 
59
void decodeMailURL(const char *url, char **addr_p, char **subj_p, char **body_p) ;
 
60
 
 
61
/* sourcefile=auth.c */
 
62
char * getAuthString(const char *url) ;
 
63
bool addWebAuthorization(const char *url, int realm, const char *user, const char *password, bool proxy) ;
 
64
 
 
65
/* sourcefile=http.c */
 
66
void ssl_init(bool doConfig) ;
 
67
void ssl_must_verify(bool verify_flag) ;
 
68
char * extractHeaderItem(const char *head, const char *end, const char *item, const char **ptr) ;
 
69
char * extractHeaderParam(const char *str, const char *item) ;
 
70
time_t parseHeaderDate(const char *date) ;
 
71
bool parseRefresh(char *ref, int *delay_p) ;
 
72
bool refreshDelay(int sec, const char *u) ;
 
73
bool httpConnect(const char *from, const char *url) ;
 
74
bool ftpConnect(const char *url) ;
 
75
void allIPs(void) ;
 
76
 
 
77
/* sourcefile=sendmail.c */
 
78
bool loadAddressBook(void) ;
 
79
const char * reverseAlias(const char *reply) ;
 
80
bool serverPutLine(const char *buf) ;
 
81
bool serverGetLine(void) ;
 
82
void serverClose(void) ;
 
83
bool mailConnect(const char *host, int port) ;
 
84
char * base64Encode(const char *inbuf, int inlen, bool lines) ;
 
85
bool encodeAttachment(const char *file, int ismail, const char **type_p, const char **enc_p, char **data_p) ;
 
86
char * makeBoundary(void) ;
 
87
bool sendMail(int account, const char **recipients, const char *body, int subjat, const char **attachments, int nalt, bool dosig) ;
 
88
bool validAccount(int n) ;
 
89
bool sendMailCurrent(int sm_account, bool dosig) ;
 
90
 
 
91
/* sourcefile=fetchmail.c */
 
92
void loadBlacklist(void) ;
 
93
bool onBlacklist1(long tip) ;
 
94
void fetchMail(int account) ;
 
95
bool emailTest(void) ;
 
96
char * emailParse(char *buf) ;
 
97
 
 
98
/* sourcefile=html.c */
 
99
void freeTags(void *a) ;
 
100
bool tagHandler(int seqno, const char *name) ;
 
101
void jsdw(void) ;
 
102
void jSyncup(void) ;
 
103
void preFormatCheck(int tagno, bool * pretag, bool * slash) ;
 
104
char * htmlParse(char *buf, int remote) ;
 
105
void findField(const char *line, int ftype, int n, int *total, int *tagno, char **href, void **evp) ;
 
106
void findInputField(const char *line, int ftype, int n, int *total, int *tagno) ;
 
107
bool lineHasTag(const char *p, const char *s) ;
 
108
bool htmlTest(void) ;
 
109
void infShow(int tagno, const char *search) ;
 
110
bool infReplace(int tagno, const char *newtext, int notify) ;
 
111
bool infPush(int tagno, char **post_string) ;
 
112
void javaSetsTagVar(void *v, const char *val) ;
 
113
void javaSubmitsForm(void *v, bool reset) ;
 
114
void javaOpensWindow(const char *href, const char *name) ;
 
115
void javaSetsTimeout(int n, const char *jsrc, void *to, bool isInterval) ;
 
116
 
 
117
/* sourcefile=format.c */
 
118
void prepareForBrowse(char *h, int h_len) ;
 
119
const char * skipHtmlComment(const char *h, int *lines) ;
 
120
bool parseTag(char *e, const char **name, int *namelen, const char **attr, const char **end, int *lines) ;
 
121
char * htmlAttrVal(const char *e, const char *name) ;
 
122
bool findEndScript(const char *h, const char *tagname, bool is_js, char **end_p, char **new_p, int *lines) ;
 
123
void anchorSwap(char *buf) ;
 
124
bool breakLine(const char *line, int len, int *newlen) ;
 
125
void breakLineSetup(void) ;
 
126
char * htmlReformat(const char *buf) ;
 
127
char * andTranslate(const char *s, bool invisible) ;
 
128
 
 
129
/* sourcefile=cookies.c */
 
130
bool domainSecurityCheck(const char *server, const char *domain) ;
 
131
bool receiveCookie(const char *url, const char *str) ;
 
132
void cookiesFromJar(void) ;
 
133
void sendCookies(char **s, int *l, const char *url, bool issecure) ;
 
134
 
 
135
/* sourcefile=stringfile.c */
 
136
void * allocMem(unsigned n) ;
 
137
void * allocZeroMem(unsigned n) ;
 
138
void * reallocMem(void *p, unsigned n) ;
 
139
void nzFree(void *s) ;
 
140
uchar fromHex(char d, char e) ;
 
141
char * appendString(char *s, const char *p) ;
 
142
char * prependString(char *s, const char *p) ;
 
143
void skipWhite(const char **s) ;
 
144
void stripWhite(char *s) ;
 
145
void spaceCrunch(char *s, bool onespace, bool unprint) ;
 
146
char * initString(int *l) ;
 
147
void stringAndString(char **s, int *l, const char *t) ;
 
148
void stringAndBytes(char **s, int *l, const char *t, int cnt) ;
 
149
void stringAndChar(char **s, int *l, char c) ;
 
150
void stringAndNum(char **s, int *l, int n) ;
 
151
void stringAndKnum(char **s, int *l, int n) ;
 
152
char * cloneString(const char *s) ;
 
153
char * cloneMemory(const char *s, int n) ;
 
154
char * Cify(const char *s, int n) ;
 
155
char * pullString(const char *s, int l) ;
 
156
char * pullString1(const char *s, const char *t) ;
 
157
int stringIsNum(const char *s) ;
 
158
bool stringIsFloat(const char *s, double *dp) ;
 
159
bool memEqualCI(const char *s, const char *t, int len) ;
 
160
char * strstrCI(const char *base, const char *search) ;
 
161
bool stringEqualCI(const char *s, const char *t) ;
 
162
int stringInList(const char *const *list, const char *s) ;
 
163
int stringInListCI(const char *const *list, const char *s) ;
 
164
bool listIsEmpty(const struct listHead * l) ;
 
165
void initList(struct listHead *l) ;
 
166
void delFromList(void *x) ;
 
167
void addToListFront(struct listHead *l, void *x) ;
 
168
void addToListBack(struct listHead *l, void *x) ;
 
169
void addAtPosition(void *p, void *x) ;
 
170
void freeList(struct listHead *l) ;
 
171
bool isA(char c) ;
 
172
bool isquote(char c) ;
 
173
void varargLocals(va_list p, const char *msg, long *locals) ;
 
174
void errorPrint(const char *msg, ...) ;
 
175
void debugPrint(int lev, const char *msg, ...) ;
 
176
void setError(const char *msg, ...) ;
 
177
void showError(void) ;
 
178
void showErrorConditional(char cmd) ;
 
179
void showErrorAbort(void) ;
 
180
void browseError(const char *msg, ...) ;
 
181
void runningError(const char *msg, ...) ;
 
182
int perl2c(char *t) ;
 
183
unsigned pstLength(pst s) ;
 
184
pst clonePstring(pst s) ;
 
185
void copyPstring(pst s, const pst t) ;
 
186
bool fileIntoMemory(const char *filename, char **data, int *len) ;
 
187
void caseShift(char *s, char action) ;
 
188
char fileTypeByName(const char *name, bool showlink) ;
 
189
int fileSizeByName(const char *name) ;
 
190
time_t fileTimeByName(const char *name) ;
 
191
void ttySaveSettings(void) ;
 
192
int getche(void) ;
 
193
int getch(void) ;
 
194
char getLetter(const char *s) ;
 
195
char * nextScanFile(const char *base) ;
 
196
bool sortedDirList(const char *dir, int *start, int *end) ;
 
197
bool envFile(const char *line, const char **expanded) ;
 
198
const char * currentOS(void) ;
 
199
const char * currentMachine(void) ;
 
200
 
 
201
/* sourcefile=jsdom.c */
 
202
void * createJavaContext(void) ;
 
203
void freeJavaContext(void *jsc) ;
 
204
void establish_innerHTML(void *jv, const char *start, const char *end, bool is_ta) ;
 
205
void jMyContext(void) ;
 
206
bool javaParseExecute(void *this, const char *str, const char *filename, int lineno) ;
 
207
void * domLink(const char *classname, const char *symname, const char *idname, const char *href, const char *href_url, const char *list, void *owner, bool isradio) ;
 
208
 
 
209
/* sourcefile=jsloc.c */
 
210
const char * stringize(long v) ;
 
211
void initLocationClass(void) ;
 
212
void establish_property_string(void *jv, const char *name, const char *value, bool readonly) ;
 
213
void establish_property_number(void *jv, const char *name, int value, bool readonly) ;
 
214
void establish_property_bool(void *jv, const char *name, bool value, bool readonly) ;
 
215
void * establish_property_array(void *jv, const char *name) ;
 
216
void establish_property_object(void *parent, const char *name, void *child) ;
 
217
void establish_property_url(void *jv, const char *name, const char *url, bool readonly) ;
 
218
void set_property_string(void *jv, const char *name, const char *value) ;
 
219
void set_property_number(void *jv, const char *name, int value) ;
 
220
void set_property_bool(void *jv, const char *name, int value) ;
 
221
const char * get_property_url(void *jv, bool doaction) ;
 
222
const char * get_property_string(void *jv, const char *name) ;
 
223
bool get_property_bool(void *jv, const char *name) ;
 
224
void * establish_js_option(void *ev, int idx) ;
 
225
bool handlerGo(void *obj, const char *name) ;
 
226
void handlerSet(void *ev, const char *name, const char *code) ;
 
227
void link_onunload_onclick(void *jv) ;
 
228
bool handlerPresent(void *ev, const char *name) ;
 
229