aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/attributes/attribute_handler.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-11-17 14:51:50 +0100
committerMartin Willi <martin@strongswan.org>2009-11-17 14:51:50 +0100
commitb5a2055fb1b88ea4abb97334d89e311c9ceaa7d4 (patch)
treeeb71f0e63c8859e6fd7d7d59559984feda61a441 /src/libstrongswan/attributes/attribute_handler.h
parente6cf06027572382cc8d326ee3ccd265ff7e522e0 (diff)
downloadstrongswan-b5a2055fb1b88ea4abb97334d89e311c9ceaa7d4.tar.bz2
strongswan-b5a2055fb1b88ea4abb97334d89e311c9ceaa7d4.tar.xz
Give plugins more control of which configuration attributes to request, and pass received attributes back to the requesting handler
Diffstat (limited to 'src/libstrongswan/attributes/attribute_handler.h')
-rw-r--r--src/libstrongswan/attributes/attribute_handler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstrongswan/attributes/attribute_handler.h b/src/libstrongswan/attributes/attribute_handler.h
index c9b668cc3..d042f47ef 100644
--- a/src/libstrongswan/attributes/attribute_handler.h
+++ b/src/libstrongswan/attributes/attribute_handler.h
@@ -22,6 +22,7 @@
#define ATTRIBUTE_HANDLER_H_
#include <chunk.h>
+#include <utils/host.h>
#include <utils/identification.h>
#include "attributes.h"
@@ -56,6 +57,16 @@ struct attribute_handler_t {
*/
void (*release)(attribute_handler_t *this, identification_t *server,
configuration_attribute_type_t type, chunk_t data);
+
+ /**
+ * Enumerate attributes to request from a server.
+ *
+ * @param server server identity to request attributes from
+ * @param vip virtual IP we are requesting, if any
+ * @return enumerator (configuration_attribute_type_t, chunk_t)
+ */
+ enumerator_t* (*create_attribute_enumerator)(attribute_handler_t *this,
+ identification_t *server, host_t *vip);
};
#endif /** ATTRIBUTE_HANDLER_H_ @}*/