X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..141c12847a1c2f8cc8db03d420551584e689fb87:/key/passphrase.c diff --git a/key/passphrase.c b/key/passphrase.c index 6f0780f9..3a287bde 100644 --- a/key/passphrase.c +++ b/key/passphrase.c @@ -35,6 +35,7 @@ #include #include +#include #include "passphrase.h" #include "pixie.h" @@ -122,7 +123,7 @@ int passphrase_read(const char *tag, unsigned mode, char *buf, size_t sz) char b[1024]; DRESET(&d); dstr_putf(&d, "Verify passphrase %s: ", tag); - if (pixie_getpass(d.buf, b, sizeof(b)) || strcmp(b, buf) != 0) { + if (pixie_getpass(d.buf, b, sizeof(b)) || STRCMP(b, !=, buf)) { memset(b, 0, sizeof(b)); goto fail; }