diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 03:06:03 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 03:06:03 +0200 |
commit | a02fb0711ba496877c111b118b78d404151a8b8d (patch) | |
tree | 7537bd38a88e0f46751f93871bb44f66829d23af /src/peer.c | |
parent | 44742f8aadb7a8a969f11d9b1d50c8be2573a576 (diff) | |
download | fastd-a02fb0711ba496877c111b118b78d404151a8b8d.tar fastd-a02fb0711ba496877c111b118b78d404151a8b8d.zip |
Initial implementation of the FHMQV-C handshake
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -50,8 +50,8 @@ const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buf } static inline void reset_peer(fastd_context *ctx, fastd_peer *peer) { - ctx->conf->protocol->free_peer_private(ctx, peer); - peer->protocol_private = NULL; + ctx->conf->protocol->free_peer_state(ctx, peer); + peer->protocol_state = NULL; int i, deleted = 0; for (i = 0; i < ctx->n_eth_addr; i++) { @@ -95,7 +95,7 @@ static fastd_peer* add_peer(fastd_context *ctx) { peer->next = ctx->peers; peer->last_req_id = 0; - peer->protocol_private = NULL; + peer->protocol_state = NULL; ctx->peers = peer; |