peer_cfg lookup takes peer addresses into account

This commit is contained in:
Martin Willi
2008-07-01 09:05:20 +00:00
parent 866ba8e0b6
commit 62bd123952
3 changed files with 103 additions and 82 deletions
+4 -1
View File
@@ -66,12 +66,15 @@ struct backend_manager_t {
/**
* Get a peer_config identified by two IDs and authorization info.
*
* @param me own address
* @param other peer address
* @param my_id own ID
* @param other_id peer ID
* @param auth_info authorization info
* @return matching peer_config, or NULL if none found
*/
peer_cfg_t* (*get_peer_cfg)(backend_manager_t *this, identification_t *my_id,
peer_cfg_t* (*get_peer_cfg)(backend_manager_t *this, host_t *me,
host_t *other, identification_t *my_id,
identification_t *other_id, auth_info_t *auth);
/**