this->config = cfg;
}
+METHOD(child_create_t, get_config, child_cfg_t*,
+ private_child_create_t *this)
+{
+ return this->initiator ? this->config : NULL;
+}
+
METHOD(child_create_t, get_lower_nonce, chunk_t,
private_child_create_t *this)
{
.get_child = _get_child,
.get_other_spi = _get_other_spi,
.set_config = _set_config,
+ .get_config = _get_config,
.get_lower_nonce = _get_lower_nonce,
.use_reqid = _use_reqid,
.use_marks = _use_marks,
* @param cfg configuration to enforce, reference gets owned
*/
void (*set_config)(child_create_t *this, child_cfg_t *cfg);
+
+ /**
+ * Get the child config of this task as initiator.
+ *
+ * @return config for the CHILD_SA, NULL as responder
+ */
+ child_cfg_t *(*get_config)(child_create_t *this);
};
/**