Skip to content

Commit

Permalink
src/message_client: remove old commented handshake-based init code
Browse files Browse the repository at this point in the history
  • Loading branch information
fbrausse committed Aug 1, 2019
1 parent 5e4abed commit 54e8c17
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/message_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,30 +155,6 @@ int main(void) {

axc_buf_free(msg_buf_p);

#if 0
printf("creating handshake initiation message\n");
axc_handshake * handshake_a;
if (axc_handshake_initiate(&addr_b, ctx_a_p, &handshake_a)) {
fprintf(stderr, "failed to initialize handshake from alice to bob\n");
axc_cleanup(ctx_b_p);
return EXIT_FAILURE;
}

printf("'sending' the message to bob and accepting it\n");
axc_handshake * handshake_b;
if (axc_handshake_accept(axc_handshake_get_data(handshake_a), &addr_a, ctx_b_p, &handshake_b)) {
fprintf(stderr, "failed to accept handshake on bob's side\n");
axc_cleanup(ctx_b_p);
return EXIT_FAILURE;
}

printf("'sending' response from bob back to alice\n");
if (axc_handshake_acknowledge(axc_handshake_get_data(handshake_b), handshake_a, ctx_a_p)) {
fprintf(stderr, "failed to acknowledge handhshake on alice' side\n");
axc_cleanup(ctx_b_p);
return EXIT_FAILURE;
}
#endif
printf("session created on each side\n");
} else {
printf("session exists.\n");
Expand Down

0 comments on commit 54e8c17

Please sign in to comment.