X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsptps_test.c;h=952250a78002c9ed1fe062c9773e4e4b82e7034b;hb=9e76c464b26b066e1eb3aa5232e573792e28020d;hp=30cc33c087157e6ae1cf559fb43ebef6a5d7ccaa;hpb=5eeed38b8eb15f4c0464675b7d8c7722bc8be168;p=tinc diff --git a/src/sptps_test.c b/src/sptps_test.c index 30cc33c0..952250a7 100644 --- a/src/sptps_test.c +++ b/src/sptps_test.c @@ -25,14 +25,13 @@ #include "utils.h" // Symbols necessary to link with logger.o -char *logfilename; -char *connection_tree; -char *send_request; -char *send_meta; +bool send_request(void *c, const char *msg, ...) { return false; } +struct splay_tree_t *connection_tree = NULL; +bool send_meta(void *c, const char *msg , int len) { return false; } ecdsa_t mykey, hiskey; -static bool send_data(void *handle, const char *data, size_t len) { +static bool send_data(void *handle, uint8_t type, const char *data, size_t len) { char hex[len * 2 + 1]; bin2hex(data, hex, len); fprintf(stderr, "Sending %d bytes of data:\n%s\n", (int)len, hex);