proposal: correctly enumerate registered AEADs to build default IKE proposal
[strongswan.git] / src / libcharon / config / backend_manager.h
index 5b394f7..cc8ef87 100644 (file)
@@ -24,7 +24,7 @@
 typedef struct backend_manager_t backend_manager_t;
 
 #include <library.h>
-#include <utils/host.h>
+#include <networking/host.h>
 #include <utils/identification.h>
 #include <config/ike_cfg.h>
 #include <config/peer_cfg.h>
@@ -56,10 +56,12 @@ struct backend_manager_t {
         *
         * @param my_host                       address of own host
         * @param other_host            address of remote host
+        * @param version                       IKE version to get a config for
         * @return                                      matching ike_config, or NULL if none found
         */
        ike_cfg_t* (*get_ike_cfg)(backend_manager_t *this,
-                                                         host_t *my_host, host_t *other_host);
+                                                         host_t *my_host, host_t *other_host,
+                                                         ike_version_t version);
 
        /**
         * Get a peer_config identified by it's name.
@@ -79,11 +81,12 @@ struct backend_manager_t {
         * @param other                         remote address
         * @param my_id                         IDr in first authentication round
         * @param other_id                      IDi in first authentication round
+        * @param version                       IKE version to get a config for
         * @return                                      enumerator over peer_cfg_t
         */
        enumerator_t* (*create_peer_cfg_enumerator)(backend_manager_t *this,
                                                        host_t *me, host_t *other, identification_t *my_id,
-                                                       identification_t *other_id);
+                                                       identification_t *other_id, ike_version_t version);
        /**
         * Register a backend on the manager.
         *