X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..1519ef6617fd7351bd40026b9eeb47c7f7f42234:/rand/tlsprf.c diff --git a/rand/tlsprf.c b/rand/tlsprf.c index 3f055b0d..95f5b945 100644 --- a/rand/tlsprf.c +++ b/rand/tlsprf.c @@ -249,7 +249,7 @@ static const grand_ops dx_grops = { "", GRAND_CRYPTO, 0, dx_grmisc, dx_grdestroy, - dx_grword, dx_grbyte, dx_grword, grand_range, dx_grfill + dx_grword, dx_grbyte, dx_grword, grand_defaultrange, dx_grfill }; /* ---@tlsdx_rand@ --- * @@ -454,7 +454,7 @@ static const grand_ops prf_grops = { "", GRAND_CRYPTO, 0, prf_grmisc, prf_grdestroy, - prf_grword, prf_grbyte, prf_grword, grand_range, prf_grfill + prf_grword, prf_grbyte, prf_grword, grand_defaultrange, prf_grfill }; /* ---@tlsprf_rand@ --- * @@ -493,6 +493,7 @@ grand *tlsprf_rand(const gcmac *mcx, const gcmac *mcy, #include #include +#include #include #include @@ -511,7 +512,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 tlsprf:" "\n\tkey = ");