Moved freeing of http request structure to its owner
[privoxy.git] / urlmatch.c
1 const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.10.2.3 2002/11/12 16:50:40 oes Exp $";
2 /*********************************************************************
3  *
4  * File        :  $Source: /cvsroot/ijbswa/current/Attic/urlmatch.c,v $
5  *
6  * Purpose     :  Declares functions to match URLs against URL
7  *                patterns.
8  *
9  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
10  *                Privoxy team. http://www.privoxy.org/
11  *
12  *                Based on the Internet Junkbuster originally written
13  *                by and Copyright (C) 1997 Anonymous Coders and
14  *                Junkbusters Corporation.  http://www.junkbusters.com
15  *
16  *                This program is free software; you can redistribute it
17  *                and/or modify it under the terms of the GNU General
18  *                Public License as published by the Free Software
19  *                Foundation; either version 2 of the License, or (at
20  *                your option) any later version.
21  *
22  *                This program is distributed in the hope that it will
23  *                be useful, but WITHOUT ANY WARRANTY; without even the
24  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
25  *                PARTICULAR PURPOSE.  See the GNU General Public
26  *                License for more details.
27  *
28  *                The GNU General Public License should be included with
29  *                this file.  If not, you can view it at
30  *                http://www.gnu.org/copyleft/gpl.html
31  *                or write to the Free Software Foundation, Inc., 59
32  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
33  *
34  * Revisions   :
35  *    $Log: urlmatch.c,v $
36  *    Revision 1.10.2.3  2002/11/12 16:50:40  oes
37  *    Fixed memory leak in parse_http_request() reported by Oliver Stoeneberg. Fixes bug #637073
38  *
39  *    Revision 1.10.2.2  2002/09/25 14:53:15  oes
40  *    Added basic support for OPTIONS and TRACE HTTP methods:
41  *    parse_http_url now recognizes the "*" URI as well as
42  *    the OPTIONS and TRACE method keywords.
43  *
44  *    Revision 1.10.2.1  2002/06/06 19:06:44  jongfoster
45  *    Adding support for proprietary Microsoft WebDAV extensions
46  *
47  *    Revision 1.10  2002/05/12 21:40:37  jongfoster
48  *    - Removing some unused code
49  *
50  *    Revision 1.9  2002/04/04 00:36:36  gliptak
51  *    always use pcre for matching
52  *
53  *    Revision 1.8  2002/04/03 23:32:47  jongfoster
54  *    Fixing memory leak on error
55  *
56  *    Revision 1.7  2002/03/26 22:29:55  swa
57  *    we have a new homepage!
58  *
59  *    Revision 1.6  2002/03/24 13:25:43  swa
60  *    name change related issues
61  *
62  *    Revision 1.5  2002/03/13 00:27:05  jongfoster
63  *    Killing warnings
64  *
65  *    Revision 1.4  2002/03/07 03:46:17  oes
66  *    Fixed compiler warnings
67  *
68  *    Revision 1.3  2002/03/03 14:51:11  oes
69  *    Fixed CLF logging: Added ocmd member for client's request to struct http_request
70  *
71  *    Revision 1.2  2002/01/21 00:14:09  jongfoster
72  *    Correcting comment style
73  *    Fixing an uninitialized memory bug in create_url_spec()
74  *
75  *    Revision 1.1  2002/01/17 20:53:46  jongfoster
76  *    Moving all our URL and URL pattern parsing code to the same file - it
77  *    was scattered around in filters.c, loaders.c and parsers.c.
78  *
79  *    Providing a single, simple url_match(pattern,url) function - rather than
80  *    the 3-line match routine which was repeated all over the place.
81  *
82  *    Renaming free_url to free_url_spec, since it frees a struct url_spec.
83  *
84  *    Providing parse_http_url() so that URLs can be parsed without faking a
85  *    HTTP request line for parse_http_request() or repeating the parsing
86  *    code (both of which were techniques that were actually in use).
87  *
88  *    Standardizing that struct http_request is used to represent a URL, and
89  *    struct url_spec is used to represent a URL pattern.  (Before, URLs were
90  *    represented as seperate variables and a partially-filled-in url_spec).
91  *
92  *
93  *********************************************************************/
94 \f
95
96 #include "config.h"
97
98 #ifndef _WIN32
99 #include <stdio.h>
100 #include <sys/types.h>
101 #endif
102
103 #include <stdlib.h>
104 #include <ctype.h>
105 #include <assert.h>
106 #include <string.h>
107
108 #if !defined(_WIN32) && !defined(__OS2__)
109 #include <unistd.h>
110 #endif
111
112 #include "project.h"
113 #include "urlmatch.h"
114 #include "ssplit.h"
115 #include "miscutil.h"
116 #include "errlog.h"
117
118 const char urlmatch_h_rcs[] = URLMATCH_H_VERSION;
119
120
121 /*********************************************************************
122  *
123  * Function    :  free_http_request
124  *
125  * Description :  Freez a http_request structure
126  *
127  * Parameters  :
128  *          1  :  http = points to a http_request structure to free
129  *
130  * Returns     :  N/A
131  *
132  *********************************************************************/
133 void free_http_request(struct http_request *http)
134 {
135    assert(http);
136
137    freez(http->cmd);
138    freez(http->ocmd);
139    freez(http->gpc);
140    freez(http->host);
141    freez(http->url);
142    freez(http->hostport);
143    freez(http->path);
144    freez(http->ver);
145    freez(http->host_ip_addr_str);
146    freez(http->dbuffer);
147    freez(http->dvec);
148    http->dcount = 0;
149 }
150
151
152 /*********************************************************************
153  *
154  * Function    :  parse_http_url
155  *
156  * Description :  Parse out the host and port from the URL.  Find the
157  *                hostname & path, port (if ':'), and/or password (if '@')
158  *
159  * Parameters  :
160  *          1  :  url = URL (or is it URI?) to break down
161  *          2  :  http = pointer to the http structure to hold elements.
162  *                       Will be zeroed before use.  Note that this
163  *                       function sets the http->gpc and http->ver
164  *                       members to NULL.
165  *          3  :  csp = Current client state (buffers, headers, etc...)
166  *
167  * Returns     :  JB_ERR_OK on success
168  *                JB_ERR_MEMORY on out of memory
169  *                JB_ERR_PARSE on malformed command/URL
170  *                             or >100 domains deep.
171  *
172  *********************************************************************/
173 jb_err parse_http_url(const char * url,
174                       struct http_request *http,
175                       struct client_state *csp)
176 {
177    /*
178     * Zero out the results structure
179     */
180    memset(http, '\0', sizeof(*http));
181
182
183    /*
184     * Save our initial URL
185     */
186    http->url = strdup(url);
187    if (http->url == NULL)
188    {
189       return JB_ERR_MEMORY;
190    }
191
192
193    /*
194     * Check for * URI. If found, we're done.
195     */  
196    if (*http->url == '*')
197    {
198       http->path = strdup("*");
199       http->hostport = strdup("");
200       return JB_ERR_OK;
201    }
202
203
204    /*
205     * Split URL into protocol,hostport,path.
206     */
207    {
208       char *buf;
209       char *url_noproto;
210       char *url_path;
211
212       buf = strdup(url);
213       if (buf == NULL)
214       {
215          return JB_ERR_MEMORY;
216       }
217
218       /* Find the start of the URL in our scratch space */
219       url_noproto = buf;
220       if (strncmpic(url_noproto, "http://",  7) == 0)
221       {
222          url_noproto += 7;
223          http->ssl = 0;
224       }
225       else if (strncmpic(url_noproto, "https://", 8) == 0)
226       {
227          url_noproto += 8;
228          http->ssl = 1;
229       }
230       else
231       {
232          http->ssl = 0;
233       }
234
235       url_path = strchr(url_noproto, '/');
236       if (url_path != NULL)
237       {
238          /*
239           * Got a path.
240           *
241           * NOTE: The following line ignores the path for HTTPS URLS.
242           * This means that you get consistent behaviour if you type a
243           * https URL in and it's parsed by the function.  (When the
244           * URL is actually retrieved, SSL hides the path part).
245           */
246          http->path = strdup(http->ssl ? "/" : url_path);
247          *url_path = '\0';
248          http->hostport = strdup(url_noproto);
249       }
250       else
251       {
252          /*
253           * Repair broken HTTP requests that don't contain a path,
254           * or CONNECT requests
255           */
256          http->path = strdup("/");
257          http->hostport = strdup(url_noproto);
258       }
259
260       free(buf);
261
262       if ( (http->path == NULL)
263         || (http->hostport == NULL))
264       {
265          free(buf);
266          return JB_ERR_MEMORY;
267       }
268    }
269
270
271    /*
272     * Split hostport into user/password (ignored), host, port.
273     */
274    {
275       char *buf;
276       char *host;
277       char *port;
278
279       buf = strdup(http->hostport);
280       if (buf == NULL)
281       {
282          return JB_ERR_MEMORY;
283       }
284
285       /* check if url contains username and/or password */
286       host = strchr(buf, '@');
287       if (host != NULL)
288       {
289          /* Contains username/password, skip it and the @ sign. */
290          host++;
291       }
292       else
293       {
294          /* No username or password. */
295          host = buf;
296       }
297
298       /* check if url contains port */
299       port = strchr(host, ':');
300       if (port != NULL)
301       {
302          /* Contains port */
303          /* Terminate hostname and point to start of port string */
304          *port++ = '\0';
305          http->port = atoi(port);
306       }
307       else
308       {
309          /* No port specified. */
310          http->port = (http->ssl ? 143 : 80);
311       }
312
313       http->host = strdup(host);
314
315       free(buf);
316
317       if (http->host == NULL)
318       {
319          return JB_ERR_MEMORY;
320       }
321    }
322
323    /*
324     * Split domain name so we can compare it against wildcards
325     */
326
327    {
328       char *vec[BUFFER_SIZE];
329       size_t size;
330       char *p;
331
332       http->dbuffer = strdup(http->host);
333       if (NULL == http->dbuffer)
334       {
335          return JB_ERR_MEMORY;
336       }
337
338       /* map to lower case */
339       for (p = http->dbuffer; *p ; p++)
340       {
341          *p = tolower((int)(unsigned char)*p);
342       }
343
344       /* split the domain name into components */
345       http->dcount = ssplit(http->dbuffer, ".", vec, SZ(vec), 1, 1);
346
347       if (http->dcount <= 0)
348       {
349          /*
350           * Error: More than SZ(vec) components in domain
351           *    or: no components in domain
352           */
353          return JB_ERR_PARSE;
354       }
355
356       /* save a copy of the pointers in dvec */
357       size = http->dcount * sizeof(*http->dvec);
358
359       http->dvec = (char **)malloc(size);
360       if (NULL == http->dvec)
361       {
362          return JB_ERR_MEMORY;
363       }
364
365       memcpy(http->dvec, vec, size);
366    }
367
368    return JB_ERR_OK;
369
370 }
371
372
373 /*********************************************************************
374  *
375  * Function    :  parse_http_request
376  *
377  * Description :  Parse out the host and port from the URL.  Find the
378  *                hostname & path, port (if ':'), and/or password (if '@')
379  *
380  * Parameters  :
381  *          1  :  req = HTTP request line to break down
382  *          2  :  http = pointer to the http structure to hold elements
383  *          3  :  csp = Current client state (buffers, headers, etc...)
384  *
385  * Returns     :  JB_ERR_OK on success
386  *                JB_ERR_MEMORY on out of memory
387  *                JB_ERR_CGI_PARAMS on malformed command/URL
388  *                                  or >100 domains deep.
389  *
390  *********************************************************************/
391 jb_err parse_http_request(const char *req,
392                           struct http_request *http,
393                           struct client_state *csp)
394 {
395    char *buf;
396    char *v[10];
397    int n;
398    jb_err err;
399    int is_connect = 0;
400
401    memset(http, '\0', sizeof(*http));
402
403    buf = strdup(req);
404    if (buf == NULL)
405    {
406       return JB_ERR_MEMORY;
407    }
408
409    n = ssplit(buf, " \r\n", v, SZ(v), 1, 1);
410    if (n != 3)
411    {
412       free(buf);
413       return JB_ERR_PARSE;
414    }
415
416    /* this could be a CONNECT request */
417    if (strcmpic(v[0], "connect") == 0)
418    {
419       /* Secure */
420       is_connect = 1;
421    }
422    /* or it could be any other basic HTTP request type */
423    else if ((0 == strcmpic(v[0], "get"))
424          || (0 == strcmpic(v[0], "head"))
425          || (0 == strcmpic(v[0], "post"))
426          || (0 == strcmpic(v[0], "put"))
427          || (0 == strcmpic(v[0], "delete"))
428          || (0 == strcmpic(v[0], "options"))
429          || (0 == strcmpic(v[0], "trace"))
430  
431          /* or a webDAV extension (RFC2518) */
432          || (0 == strcmpic(v[0], "propfind"))
433          || (0 == strcmpic(v[0], "proppatch"))
434          || (0 == strcmpic(v[0], "move"))
435          || (0 == strcmpic(v[0], "copy"))
436          || (0 == strcmpic(v[0], "mkcol"))
437          || (0 == strcmpic(v[0], "lock"))
438          || (0 == strcmpic(v[0], "unlock"))
439
440          /* Or a Microsoft webDAV extension for Exchange 2000.  See: */
441          /*   http://lists.w3.org/Archives/Public/w3c-dist-auth/2002JanMar/0001.html */
442          /*   http://msdn.microsoft.com/library/en-us/wss/wss/_webdav_methods.asp */ 
443          || (0 == strcmpic(v[0], "bcopy"))
444          || (0 == strcmpic(v[0], "bmove"))
445          || (0 == strcmpic(v[0], "bdelete"))
446          || (0 == strcmpic(v[0], "bpropfind"))
447          || (0 == strcmpic(v[0], "bproppatch"))
448
449          /* Or another Microsoft webDAV extension for Exchange 2000.  See: */
450          /*   http://systems.cs.colorado.edu/grunwald/MobileComputing/Papers/draft-cohen-gena-p-base-00.txt */
451          /*   http://lists.w3.org/Archives/Public/w3c-dist-auth/2002JanMar/0001.html */
452          /*   http://msdn.microsoft.com/library/en-us/wss/wss/_webdav_methods.asp */ 
453          || (0 == strcmpic(v[0], "subscribe"))
454          || (0 == strcmpic(v[0], "unsubscribe"))
455          || (0 == strcmpic(v[0], "notify"))
456          || (0 == strcmpic(v[0], "poll"))
457          )
458    {
459       /* Normal */
460       is_connect = 0;
461    }
462    else
463    {
464       /* Unknown HTTP method */
465       free(buf);
466       return JB_ERR_PARSE;
467    }
468
469    err = parse_http_url(v[1], http, csp);
470    if (err)
471    {
472       free(buf);
473       return err;
474    }
475
476    /*
477     * Copy the details into the structure
478     */
479    http->ssl = is_connect;
480    http->cmd = strdup(req);
481    http->gpc = strdup(v[0]);
482    http->ver = strdup(v[2]);
483
484    if ( (http->cmd == NULL)
485      || (http->gpc == NULL)
486      || (http->ver == NULL) )
487    {
488       free(buf);
489       return JB_ERR_MEMORY;
490    }
491
492    free(buf);
493    return JB_ERR_OK;
494
495 }
496
497
498 /*********************************************************************
499  *
500  * Function    :  simple_domaincmp
501  *
502  * Description :  Domain-wise Compare fqdn's.  The comparison is
503  *                both left- and right-anchored.  The individual
504  *                domain names are compared with simplematch().
505  *                This is only used by domain_match.
506  *
507  * Parameters  :
508  *          1  :  pv = array of patterns to compare
509  *          2  :  fv = array of domain components to compare
510  *          3  :  len = length of the arrays (both arrays are the
511  *                      same length - if they weren't, it couldn't
512  *                      possibly be a match).
513  *
514  * Returns     :  0 => domains are equivalent, else no match.
515  *
516  *********************************************************************/
517 static int simple_domaincmp(char **pv, char **fv, int len)
518 {
519    int n;
520
521    for (n = 0; n < len; n++)
522    {
523       if (simplematch(pv[n], fv[n]))
524       {
525          return 1;
526       }
527    }
528
529    return 0;
530
531 }
532
533
534 /*********************************************************************
535  *
536  * Function    :  domain_match
537  *
538  * Description :  Domain-wise Compare fqdn's. Governed by the bimap in
539  *                pattern->unachored, the comparison is un-, left-,
540  *                right-anchored, or both.
541  *                The individual domain names are compared with
542  *                simplematch().
543  *
544  * Parameters  :
545  *          1  :  pattern = a domain that may contain a '*' as a wildcard.
546  *          2  :  fqdn = domain name against which the patterns are compared.
547  *
548  * Returns     :  0 => domains are equivalent, else no match.
549  *
550  *********************************************************************/
551 static int domain_match(const struct url_spec *pattern, const struct http_request *fqdn)
552 {
553    char **pv, **fv;  /* vectors  */
554    int    plen, flen;
555    int unanchored = pattern->unanchored & (ANCHOR_RIGHT | ANCHOR_LEFT);
556
557    plen = pattern->dcount;
558    flen = fqdn->dcount;
559
560    if (flen < plen)
561    {
562       /* fqdn is too short to match this pattern */
563       return 1;
564    }
565
566    pv   = pattern->dvec;
567    fv   = fqdn->dvec;
568
569    if (unanchored == ANCHOR_LEFT)
570    {
571       /*
572        * Right anchored.
573        *
574        * Convert this into a fully anchored pattern with
575        * the fqdn and pattern the same length
576        */
577       fv += (flen - plen); /* flen - plen >= 0 due to check above */
578       return simple_domaincmp(pv, fv, plen);
579    }
580    else if (unanchored == 0)
581    {
582       /* Fully anchored, check length */
583       if (flen != plen)
584       {
585          return 1;
586       }
587       return simple_domaincmp(pv, fv, plen);
588    }
589    else if (unanchored == ANCHOR_RIGHT)
590    {
591       /* Left anchored, ignore all extra in fqdn */
592       return simple_domaincmp(pv, fv, plen);
593    }
594    else
595    {
596       /* Unanchored */
597       int n;
598       int maxn = flen - plen;
599       for (n = 0; n <= maxn; n++)
600       {
601          if (!simple_domaincmp(pv, fv, plen))
602          {
603             return 0;
604          }
605          /*
606           * Doesn't match from start of fqdn
607           * Try skipping first part of fqdn
608           */
609          fv++;
610       }
611       return 1;
612    }
613
614 }
615
616
617 /*********************************************************************
618  *
619  * Function    :  create_url_spec
620  *
621  * Description :  Creates a "url_spec" structure from a string.
622  *                When finished, free with unload_url().
623  *
624  * Parameters  :
625  *          1  :  url = Target url_spec to be filled in.  Will be
626  *                      zeroed before use.
627  *          2  :  buf = Source pattern, null terminated.  NOTE: The
628  *                      contents of this buffer are destroyed by this
629  *                      function.  If this function succeeds, the
630  *                      buffer is copied to url->spec.  If this
631  *                      function fails, the contents of the buffer
632  *                      are lost forever.
633  *
634  * Returns     :  JB_ERR_OK - Success
635  *                JB_ERR_MEMORY - Out of memory
636  *                JB_ERR_PARSE - Cannot parse regex (Detailed message
637  *                               written to system log)
638  *
639  *********************************************************************/
640 jb_err create_url_spec(struct url_spec * url, const char * buf)
641 {
642    char *p;
643
644    assert(url);
645    assert(buf);
646
647    /* Zero memory */
648    memset(url, '\0', sizeof(*url));
649
650    /* save a copy of the orignal specification */
651    if ((url->spec = strdup(buf)) == NULL)
652    {
653       return JB_ERR_MEMORY;
654    }
655
656    if ((p = strchr(buf, '/')) != NULL)
657    {
658       if (NULL == (url->path = strdup(p)))
659       {
660          freez(url->spec);
661          return JB_ERR_MEMORY;
662       }
663       url->pathlen = strlen(url->path);
664       *p = '\0';
665    }
666    else
667    {
668       url->path    = NULL;
669       url->pathlen = 0;
670    }
671    if (url->path)
672    {
673       int errcode;
674       char rebuf[BUFFER_SIZE];
675
676       if (NULL == (url->preg = zalloc(sizeof(*url->preg))))
677       {
678          freez(url->spec);
679          freez(url->path);
680          return JB_ERR_MEMORY;
681       }
682
683       sprintf(rebuf, "^(%s)", url->path);
684
685       errcode = regcomp(url->preg, rebuf,
686             (REG_EXTENDED|REG_NOSUB|REG_ICASE));
687       if (errcode)
688       {
689          size_t errlen = regerror(errcode,
690             url->preg, rebuf, sizeof(rebuf));
691
692          if (errlen > (sizeof(rebuf) - (size_t)1))
693          {
694             errlen = sizeof(rebuf) - (size_t)1;
695          }
696          rebuf[errlen] = '\0';
697
698          log_error(LOG_LEVEL_ERROR, "error compiling %s: %s",
699             url->spec, rebuf);
700
701          freez(url->spec);
702          freez(url->path);
703          regfree(url->preg);
704          freez(url->preg);
705
706          return JB_ERR_PARSE;
707       }
708    }
709    if ((p = strchr(buf, ':')) == NULL)
710    {
711       url->port = 0;
712    }
713    else
714    {
715       *p++ = '\0';
716       url->port = atoi(p);
717    }
718
719    if (buf[0] != '\0')
720    {
721       char *v[150];
722       size_t size;
723
724       /* Parse domain part */
725       if (buf[strlen(buf) - 1] == '.')
726       {
727          url->unanchored |= ANCHOR_RIGHT;
728       }
729       if (buf[0] == '.')
730       {
731          url->unanchored |= ANCHOR_LEFT;
732       }
733
734       /* split domain into components */
735
736       url->dbuffer = strdup(buf);
737       if (NULL == url->dbuffer)
738       {
739          freez(url->spec);
740          freez(url->path);
741          regfree(url->preg);
742          freez(url->preg);
743          return JB_ERR_MEMORY;
744       }
745
746       /* map to lower case */
747       for (p = url->dbuffer; *p ; p++)
748       {
749          *p = tolower((int)(unsigned char)*p);
750       }
751
752       /* split the domain name into components */
753       url->dcount = ssplit(url->dbuffer, ".", v, SZ(v), 1, 1);
754
755       if (url->dcount < 0)
756       {
757          freez(url->spec);
758          freez(url->path);
759          regfree(url->preg);
760          freez(url->preg);
761          freez(url->dbuffer);
762          url->dcount = 0;
763          return JB_ERR_MEMORY;
764       }
765       else if (url->dcount != 0)
766       {
767
768          /* save a copy of the pointers in dvec */
769          size = url->dcount * sizeof(*url->dvec);
770
771          url->dvec = (char **)malloc(size);
772          if (NULL == url->dvec)
773          {
774             freez(url->spec);
775             freez(url->path);
776             regfree(url->preg);
777             freez(url->preg);
778             freez(url->dbuffer);
779             url->dcount = 0;
780             return JB_ERR_MEMORY;
781          }
782
783          memcpy(url->dvec, v, size);
784       }
785    }
786
787    return JB_ERR_OK;
788
789 }
790
791
792 /*********************************************************************
793  *
794  * Function    :  free_url_spec
795  *
796  * Description :  Called from the "unloaders".  Freez the url
797  *                structure elements.
798  *
799  * Parameters  :
800  *          1  :  url = pointer to a url_spec structure.
801  *
802  * Returns     :  N/A
803  *
804  *********************************************************************/
805 void free_url_spec(struct url_spec *url)
806 {
807    if (url == NULL) return;
808
809    freez(url->spec);
810    freez(url->dbuffer);
811    freez(url->dvec);
812    freez(url->path);
813    if (url->preg)
814    {
815       regfree(url->preg);
816       freez(url->preg);
817    }
818 }
819
820
821 /*********************************************************************
822  *
823  * Function    :  url_match
824  *
825  * Description :  Compare a URL against a URL pattern.
826  *
827  * Parameters  :
828  *          1  :  pattern = a URL pattern
829  *          2  :  url = URL to match
830  *
831  * Returns     :  0 iff the URL matches the pattern, else nonzero.
832  *
833  *********************************************************************/
834 int url_match(const struct url_spec *pattern,
835               const struct http_request *url)
836 {
837    return ((pattern->port == 0) || (pattern->port == url->port))
838        && ((pattern->dbuffer == NULL) || (domain_match(pattern, url) == 0))
839        && ((pattern->path == NULL) ||
840             (regexec(pattern->preg, url->path, 0, NULL, 0) == 0)
841       );
842 }
843
844
845 /*
846   Local Variables:
847   tab-width: 3
848   end:
849 */