projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops. Fix formatting. :-S
[u/mdw/catacomb]
/
passphrase.c
diff --git
a/passphrase.c
b/passphrase.c
index
b0268d3
..
d27b9a4
100644
(file)
--- a/
passphrase.c
+++ b/
passphrase.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: passphrase.c,v 1.
3 2000/12/06 20:33:2
7 mdw Exp $
+ * $Id: passphrase.c,v 1.
5 2002/01/13 13:41:3
7 mdw Exp $
*
* Reading of passphrases (Unix-specific)
*
*
* Reading of passphrases (Unix-specific)
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: passphrase.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: passphrase.c,v $
+ * Revision 1.5 2002/01/13 13:41:37 mdw
+ * Fix stupidity in passphrase verification.
+ *
+ * Revision 1.4 2001/04/19 18:26:01 mdw
+ * Re-request broken passphrases.
+ *
* Revision 1.3 2000/12/06 20:33:27 mdw
* Make flags be macros rather than enumerations, to ensure that they're
* unsigned.
* Revision 1.3 2000/12/06 20:33:27 mdw
* Make flags be macros rather than enumerations, to ensure that they're
* unsigned.
@@
-131,8
+137,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);
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) != 0) {
memset(b, 0, sizeof(b));
goto fail;
}
memset(b, 0, sizeof(b));
goto fail;
}