X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1da1ed6a5815deef6c33d74f1eb3c856793df3e5..a90d420cbe87490c844ae422c966e746d3134b07:/rand/sslprf.c diff --git a/rand/sslprf.c b/rand/sslprf.c index 06187b39..9601f4ec 100644 --- a/rand/sslprf.c +++ b/rand/sslprf.c @@ -310,6 +310,7 @@ grand *sslprf_rand(const gchash *hco, const gchash *hci, #include #include +#include #include #include @@ -327,7 +328,7 @@ static int v_generate(dstr *v) d.len = v[2].len; g->ops->fill(g, d.buf, d.len); g->ops->destroy(g); - if (memcmp(v[2].buf, d.buf, d.len) != 0) { + if (MEMCMP(v[2].buf, !=, d.buf, d.len)) { ok = 0; printf("\nfail sslprf:" "\n\tkey = ");