strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a getter for the HTTP referer
[strongswan.git]
/
src
/
libfast
/
request.h
diff --git
a/src/libfast/request.h
b/src/libfast/request.h
index
61e2d59
..
dd3b568
100644
(file)
--- a/
src/libfast/request.h
+++ b/
src/libfast/request.h
@@
-106,6
+106,13
@@
struct request_t {
void (*redirect)(request_t *this, char *fmt, ...);
/**
void (*redirect)(request_t *this, char *fmt, ...);
/**
+ * Get the HTTP referer.
+ *
+ * @return HTTP referer
+ */
+ char* (*get_referer)(request_t *this);
+
+ /**
* Redirect the client to the referer.
*/
void (*to_referer)(request_t *this);
* Redirect the client to the referer.
*/
void (*to_referer)(request_t *this);