From a818c94fc4474afcdebdf6eea80608c130830db1 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 1 Dec 2018 14:02:37 +0900 Subject: Replace word lists by PGP word lists from https://en.wikipedia.org/wiki/PGP_word_list --- src/demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demo.c') diff --git a/src/demo.c b/src/demo.c index 8329c62..b47dc71 100644 --- a/src/demo.c +++ b/src/demo.c @@ -243,8 +243,8 @@ int pairing_check(struct NoiseState *st, const char *buf) { if (strncasecmp(p, "and", plen)) { /* ignore "and" */ int num = -1; for (int i=0; i<256; i++) { - if ((!strncasecmp(p, adjectives[i], plen) && plen == strlen(adjectives[i])) - || (!strncasecmp(p, nouns[i], plen) && plen == strlen(nouns[i] ))) { + if ((!strncasecmp(p, even[i], plen) && plen == strlen(even[i])) + || (!strncasecmp(p, odd[i], plen) && plen == strlen(odd[i] ))) { //LOG_PRINTF(" idx=%02d h=%02x i=%02x adj=%s n=%s plen=%d s=%s\n", idx, st->handshake_hash[idx], i, adjectives[i], nouns[i], plen, p); num = i; break; -- cgit