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
This commit is contained in:
+19
-3
@@ -24,6 +24,7 @@
|
||||
#define GATEWAY_H_
|
||||
|
||||
#include <utils/host.h>
|
||||
#include <enumerator.h>
|
||||
|
||||
typedef struct gateway_t gateway_t;
|
||||
|
||||
@@ -39,7 +40,14 @@ struct gateway_t {
|
||||
* @return allocated xml response string
|
||||
*/
|
||||
char* (*request)(gateway_t *this, char *xml);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Query the list of IKE_SAs and all its children.
|
||||
*
|
||||
* @return enumerator over ikesa XML elements
|
||||
*/
|
||||
enumerator_t* (*query_ikesalist)(gateway_t *this);
|
||||
|
||||
/**
|
||||
* @brief Destroy a gateway instance.
|
||||
*/
|
||||
@@ -47,12 +55,20 @@ struct gateway_t {
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Create a gateway instance.
|
||||
* @brief Create a gateway instance using a TCP connection.
|
||||
*
|
||||
* @param name name of the gateway
|
||||
* @param host gateway connection endpoint
|
||||
* @param
|
||||
*/
|
||||
gateway_t *gateway_create(char *name, host_t *host);
|
||||
gateway_t *gateway_create_tcp(char *name, host_t *host);
|
||||
|
||||
/**
|
||||
* @brief Create a gateway instance using a UNIX socket.
|
||||
*
|
||||
* @param name name of the gateway
|
||||
* @param
|
||||
*/
|
||||
gateway_t *gateway_create_unix(char *name);
|
||||
|
||||
#endif /* GATEWAY_H_ */
|
||||
|
||||
Reference in New Issue
Block a user