diff options
author | Martin Willi <martin@strongswan.org> | 2007-09-26 14:02:21 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-09-26 14:02:21 +0000 |
commit | c295d0eb4b11a024d1607f6a80275f372c345c08 (patch) | |
tree | ec3b578e771898bbf3ca35c1ae43e77ffdcea9d9 /src/manager/lib/response.h | |
parent | a9522e16003dd9f9fc7dc998a9017dbb41a65273 (diff) | |
download | strongswan-c295d0eb4b11a024d1607f6a80275f372c345c08.tar.bz2 strongswan-c295d0eb4b11a024d1607f6a80275f372c345c08.tar.xz |
refactored strongswan manager
removed buggy request parsing code, use ClearSilvers CGI kit instead
fixed CHILD_SA listing in manager (needs better design)
using secure XML communication through unix sockets
removed images with questionable (non-GPL) license
Diffstat (limited to 'src/manager/lib/response.h')
-rw-r--r-- | src/manager/lib/response.h | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/src/manager/lib/response.h b/src/manager/lib/response.h deleted file mode 100644 index 50d0eacc1..000000000 --- a/src/manager/lib/response.h +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @file response.h - * - * @brief Interface of response_t. - * - */ - -/* - * Copyright (C) 2007 Martin Willi - * Hochschule fuer Technik Rapperswil - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - */ - -#ifndef RESPONSE_H_ -#define RESPONSE_H_ - - -#include <fcgiapp.h> - -typedef struct response_t response_t; - -/** - * @brief A HTTP response, wraps response functionality around FCGX_Request. - * - */ -struct response_t { - - /** - * @brief Write a string to the client. - * - * @param str string to write - */ - void (*print)(response_t *this, char *str); - - /** - * @brief Write a printf like format string to client. - * - * @param format printf like format string - * @param ... variable argument list - */ - void (*printf)(response_t *this, char *format, ...); - - /** - * @brief Add a custom header to the response. - * - * @param name name of the header - * @param value value of the header - */ - void (*add_header)(response_t *this, char *name, char *value); - - /** - * @brief Set the content type (Content-Type header). - * - * @param type content type (e.g. text/html) - */ - void (*set_content_type)(response_t *this, char *type); - - /** - * @brief Add a cookie to the response (Set-Cookie header). - * - * @param name name of the cookie to set - * @param value value of the cookie - */ - void (*add_cookie)(response_t *this, char *name, char *value); - - /** - * @brief Redirect the client to another location. - * - * @param location location to redirect to - */ - void (*redirect)(response_t *this, char *location); - - /** - * @brief Get the base path of the application. - * - * @return base path - */ - char* (*get_base)(response_t *this); - - /** - * @brief Destroy a response_t. - */ - void (*destroy) (response_t *this); -}; - -/** - * @brief Create a response. - * - * @param request the FCGI request structure - */ -response_t *response_create(FCGX_Request *request); - -#endif /* RESPONSE_H_ */ |