~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progs/perftest.c: Use from Glibc syscall numbers.
[catacomb]
/
rand
/
sslprf.c
diff --git
a/rand/sslprf.c
b/rand/sslprf.c
index
83a4c84
..
9601f4e
100644
(file)
--- a/
rand/sslprf.c
+++ b/
rand/sslprf.c
@@
-270,7
+270,7
@@
static const grand_ops grops = {
"<sslprf-dummy>",
GRAND_CRYPTO, 0,
grmisc, grdestroy,
"<sslprf-dummy>",
GRAND_CRYPTO, 0,
grmisc, grdestroy,
- grword, grbyte, grword, grand_range, grfill
+ grword, grbyte, grword, grand_
default
range, grfill
};
/* ---@sslprf_rand@ --- *
};
/* ---@sslprf_rand@ --- *
@@
-310,6
+310,7
@@
grand *sslprf_rand(const gchash *hco, const gchash *hci,
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#include <mLib/macros.h>
#include <mLib/quis.h>
#include <mLib/testrig.h>
#include <mLib/quis.h>
#include <mLib/testrig.h>
@@
-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);
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 = ");
ok = 0;
printf("\nfail sslprf:"
"\n\tkey = ");