#include "prf.h"
#include "sptps.h"
-unsigned int sptps_replaywin = 32;
-
/*
Nonce MUST be exchanged first (done)
Signatures MUST be done over both nonces, to guarantee the signature is fresh
fputc('\n', stderr);
}
-void (*sptps_log)(sptps_t *s, int s_errno, const char *format, va_list ap) = sptps_log_stderr;
+void (*sptps_log)(sptps_t *s, int s_errno, const char *format, va_list ap) = sptps_log_quiet;
// Log an error message.
static bool error(sptps_t *s, int s_errno, const char *format, ...) {
s->datagram = datagram;
s->mykey = mykey;
s->hiskey = hiskey;
- s->replaywin = sptps_replaywin;
+ s->replaywin = 32;
if(s->replaywin) {
s->late = malloc(s->replaywin);