X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/98421fc1a6832ad5de4b3f6171852437aa3e0fb2..141c12847a1c2f8cc8db03d420551584e689fb87:/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 = ");