X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..HEAD:/rand/sslprf.c diff --git a/rand/sslprf.c b/rand/sslprf.c index 83a4c842..9601f4ec 100644 --- a/rand/sslprf.c +++ b/rand/sslprf.c @@ -270,7 +270,7 @@ static const grand_ops grops = { "", GRAND_CRYPTO, 0, grmisc, grdestroy, - grword, grbyte, grword, grand_range, grfill + grword, grbyte, grword, grand_defaultrange, grfill }; /* ---@sslprf_rand@ --- * @@ -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 = ");