#include <mLib/tv.h>
#include <catacomb/buf.h>
+#include <catacomb/ct.h>
#include <catacomb/dh.h>
#include <catacomb/ec.h>
#include <catacomb/ec-keys.h>
* otherwise write to stderr. Don't use `%m' because that won't work when
* writing to stderr.
*/
-static void complain(int sev, const char *msg, ...)
+static void PRINTF_LIKE(2, 3) complain(int sev, const char *msg, ...)
{
va_list ap;
h = GM_INIT(m);
GH_HASH(h, p, n);
tt = GH_DONE(h, 0);
- if (memcmp(t, tt, s->k.tagsz) != 0) {
+ if (!ct_memeq(t, tt, s->k.tagsz)) {
moan("incorrect tag from %s:%d",
inet_ntoa(sin.sin_addr), ntohs(sin.sin_port));
goto again;
}
static void version(FILE *fp)
- { pquis(fp, "$, version " VERSION); }
+ { pquis(fp, "$, version " VERSION "\n"); }
static void help(FILE *fp)
{