aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager/lib/response.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-09-14 14:07:30 +0000
committerMartin Willi <martin@strongswan.org>2007-09-14 14:07:30 +0000
commitc01f7bf989dedcc61e4e812fd57d6d73997cfd85 (patch)
treee50601b98d290e941b0ea2ab9ac1769dc6f9519a /src/manager/lib/response.c
parent15a9d460c05ac73dfae41bc8a66b07f0c2a48328 (diff)
downloadstrongswan-c01f7bf989dedcc61e4e812fd57d6d73997cfd85.tar.bz2
strongswan-c01f7bf989dedcc61e4e812fd57d6d73997cfd85.tar.xz
added subnets of CHILD_SAs to xml interface
a first design of Managers IKE_SA list page
Diffstat (limited to 'src/manager/lib/response.c')
-rw-r--r--src/manager/lib/response.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/manager/lib/response.c b/src/manager/lib/response.c
index ae74ab6e5..be933792f 100644
--- a/src/manager/lib/response.c
+++ b/src/manager/lib/response.c
@@ -186,6 +186,15 @@ static void redirect(private_response_t *this, char *location)
*location == '/' ? "" : "/", location);
}
+
+/**
+ * Implementation of response_t.get_base.
+ */
+static char* get_base(private_response_t *this)
+{
+ return FCGX_GetParam("SCRIPT_NAME", this->req->envp);
+}
+
/**
* Implementation of response_t.destroy
*/
@@ -210,6 +219,7 @@ response_t *response_create(FCGX_Request *request)
this->public.set_content_type = (void(*)(response_t*, char *type))set_content_type;
this->public.add_cookie = (void(*)(response_t*, char *name, char *value))add_cookie;
this->public.redirect = (void(*)(response_t*, char *location))redirect;
+ this->public.get_base = (char*(*)(response_t*))get_base;
this->public.destroy = (void(*)(response_t*))destroy;
this->req = request;