/** \file command.c Client authentication and server commands. */
+#include <regex.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
parser_friendly = 1;
continue;
}
+ return -E_COMMAND_SYNTAX;
}
if (i != argc)
return -E_COMMAND_SYNTAX;
numbytes = 256;
get_random_bytes_or_die((unsigned char *)buf, numbytes);
}
- PARA_DEBUG_LOG("sending %zu byte challenge + rc4 keys (%u bytes)\n",
+ PARA_DEBUG_LOG("sending %u byte challenge + rc4 keys (%zu bytes)\n",
CHALLENGE_SIZE, numbytes);
ret = send_bin_buffer(fd, buf, numbytes);
if (ret < 0)
if (ret < 0)
goto net_err;
numbytes = ret;
- PARA_DEBUG_LOG("received %zu bytes challenge response\n", ret);
+ PARA_DEBUG_LOG("received %d bytes challenge response\n", ret);
ret = -E_BAD_USER;
if (!u)
goto net_err;