Do not query for CKA_ALWAYS_AUTHENTICATE if PKCS#11 Cryptoki version < 2.20
[strongswan.git] / src / libfast / request.h
index 61e2d59..c9c1f13 100644 (file)
@@ -86,6 +86,23 @@ struct request_t {
        char* (*get_query_data)(request_t *this, char *name);
 
        /**
        char* (*get_query_data)(request_t *this, char *name);
 
        /**
+        * Get an arbitrary environment variable.
+        *
+        * @param name          name of the environment variable
+        * @return                      value, NULL if not found
+        */
+       char* (*get_env_var)(request_t *this, char *name);
+
+       /**
+        * Read raw POST/PUT data from HTTP request.
+        *
+        * @param buf           buffer to read data into
+        * @param len           size of the supplied buffer
+        * @return                      number of bytes read, < 0 on error
+        */
+       int (*read_data)(request_t *this, char *buf, int len);
+
+       /**
         * Close the session and it's context after handling.
         */
        void (*close_session)(request_t *this);
         * Close the session and it's context after handling.
         */
        void (*close_session)(request_t *this);
@@ -106,7 +123,14 @@ struct request_t {
        void (*redirect)(request_t *this, char *fmt, ...);
 
        /**
        void (*redirect)(request_t *this, char *fmt, ...);
 
        /**
-        * Redirect the client to the referer.
+        * Get the HTTP referer.
+        *
+        * @return                      HTTP referer
+        */
+       char* (*get_referer)(request_t *this);
+
+       /**
+        * Redirect back to the referer.
         */
        void (*to_referer)(request_t *this);
 
         */
        void (*to_referer)(request_t *this);