MbedTLS: Use mbedtls_md5_ret() instead of mbedtls_md5()
[privoxy.git] / cgisimple.h
1 #ifndef CGISIMPLE_H_INCLUDED
2 #define CGISIMPLE_H_INCLUDED
3 /*********************************************************************
4  *
5  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.h,v $
6  *
7  * Purpose     :  Declares functions to intercept request, generate
8  *                html or gif answers, and to compose HTTP responses.
9  *
10  *                Functions declared include:
11  *
12  *
13  * Copyright   :  Written by and Copyright (C) 2001-2017 members of the
14  *                Privoxy team. https://www.privoxy.org/
15  *
16  *                Based on the Internet Junkbuster originally written
17  *                by and Copyright (C) 1997 Anonymous Coders and
18  *                Junkbusters Corporation.  http://www.junkbusters.com
19  *
20  *                This program is free software; you can redistribute it
21  *                and/or modify it under the terms of the GNU General
22  *                Public License as published by the Free Software
23  *                Foundation; either version 2 of the License, or (at
24  *                your option) any later version.
25  *
26  *                This program is distributed in the hope that it will
27  *                be useful, but WITHOUT ANY WARRANTY; without even the
28  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
29  *                PARTICULAR PURPOSE.  See the GNU General Public
30  *                License for more details.
31  *
32  *                The GNU General Public License should be included with
33  *                this file.  If not, you can view it at
34  *                http://www.gnu.org/copyleft/gpl.html
35  *                or write to the Free Software Foundation, Inc., 59
36  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
37  *
38  **********************************************************************/
39
40
41 #include "project.h"
42
43 /*
44  * CGI functions
45  */
46 extern jb_err cgi_default      (struct client_state *csp,
47                                 struct http_response *rsp,
48                                 const struct map *parameters);
49 extern jb_err cgi_error_404    (struct client_state *csp,
50                                 struct http_response *rsp,
51                                 const struct map *parameters);
52 extern jb_err cgi_robots_txt   (struct client_state *csp,
53                                 struct http_response *rsp,
54                                 const struct map *parameters);
55 extern jb_err cgi_send_banner  (struct client_state *csp,
56                                 struct http_response *rsp,
57                                 const struct map *parameters);
58 extern jb_err cgi_show_status  (struct client_state *csp,
59                                 struct http_response *rsp,
60                                 const struct map *parameters);
61 extern jb_err cgi_show_url_info(struct client_state *csp,
62                                 struct http_response *rsp,
63                                 const struct map *parameters);
64 extern jb_err cgi_show_request (struct client_state *csp,
65                                 struct http_response *rsp,
66                                 const struct map *parameters);
67 #ifdef FEATURE_CLIENT_TAGS
68 extern jb_err cgi_show_client_tags(struct client_state *csp,
69                                    struct http_response *rsp,
70                                    const struct map *parameters);
71 extern jb_err cgi_toggle_client_tag(struct client_state *csp,
72                                     struct http_response *rsp,
73                                     const struct map *parameters);
74 #endif
75 extern jb_err cgi_transparent_image (struct client_state *csp,
76                                      struct http_response *rsp,
77                                      const struct map *parameters);
78 extern jb_err cgi_send_error_favicon (struct client_state *csp,
79                                       struct http_response *rsp,
80                                       const struct map *parameters);
81 extern jb_err cgi_send_default_favicon (struct client_state *csp,
82                                         struct http_response *rsp,
83                                         const struct map *parameters);
84 extern jb_err cgi_send_stylesheet(struct client_state *csp,
85                                   struct http_response *rsp,
86                                   const struct map *parameters);
87 extern jb_err cgi_send_url_info_osd(struct client_state *csp,
88                                     struct http_response *rsp,
89                                     const struct map *parameters);
90 extern jb_err cgi_send_user_manual(struct client_state *csp,
91                                    struct http_response *rsp,
92                                    const struct map *parameters);
93
94
95 #ifdef FEATURE_GRACEFUL_TERMINATION
96 extern jb_err cgi_die (struct client_state *csp,
97                        struct http_response *rsp,
98                        const struct map *parameters);
99 #endif
100
101 #endif /* ndef CGISIMPLE_H_INCLUDED */
102
103 /*
104   Local Variables:
105   tab-width: 3
106   end:
107 */