diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-10-18 02:57:26 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-10-18 03:04:02 +0200 |
commit | df48485aeab897c50fd792a740d1a5aed4378fc9 (patch) | |
tree | 2de6c9e4847a54e0798a38a7976dc2a5ac89c7c3 /src/handshake.c | |
parent | d9a5267fceca6f46ee3005f7624fa92786a3c9b1 (diff) | |
download | fastd-df48485aeab897c50fd792a740d1a5aed4378fc9.tar fastd-df48485aeab897c50fd792a740d1a5aed4378fc9.zip |
peer_group: move to a new header, add recursive lookup macros
Diffstat (limited to 'src/handshake.c')
-rw-r--r-- | src/handshake.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c index d82a4b2..2c50c0e 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -33,6 +33,7 @@ #include "handshake.h" #include "method.h" #include "peer.h" +#include "peer_group.h" #include <fastd_version.h> @@ -424,7 +425,7 @@ static inline const fastd_method_info_t * get_method_by_name(const fastd_string_ /** Returns the most appropriate method to negotiate with a peer a handshake was received from */ const fastd_method_info_t * fastd_handshake_get_method(const fastd_peer_t *peer, const fastd_handshake_t *handshake) { - const fastd_string_stack_t *methods = fastd_peer_get_methods(peer); + const fastd_string_stack_t *methods = *fastd_peer_group_lookup_peer(peer, methods); if (handshake->records[RECORD_METHOD_LIST].data && handshake->records[RECORD_METHOD_LIST].length) { fastd_string_stack_t *method_list = parse_string_list(handshake->records[RECORD_METHOD_LIST].data, handshake->records[RECORD_METHOD_LIST].length); |