projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e1601e
)
Re-request broken passphrases.
author
mdw
<mdw>
Thu, 19 Apr 2001 18:26:01 +0000
(18:26 +0000)
committer
mdw
<mdw>
Thu, 19 Apr 2001 18:26:01 +0000
(18:26 +0000)
passphrase.c
patch
|
blob
|
blame
|
history
diff --git
a/passphrase.c
b/passphrase.c
index
b0268d3
..
a8dacc2
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:27
mdw Exp $
+ * $Id: passphrase.c,v 1.
4 2001/04/19 18:26:01
mdw Exp $
*
* Reading of passphrases (Unix-specific)
*
*
* Reading of passphrases (Unix-specific)
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: passphrase.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: passphrase.c,v $
+ * 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.
@@
-122,6
+125,7
@@
int passphrase_read(const char *tag, unsigned mode, char *buf, size_t sz)
/* --- Read from the terminal --- */
/* --- Read from the terminal --- */
+again:
dstr_putf(&d, "%s %s: ",
mode == PMODE_READ ? "Passphrase" : "New passphrase",
tag);
dstr_putf(&d, "%s %s: ",
mode == PMODE_READ ? "Passphrase" : "New passphrase",
tag);
@@
-134,7
+138,6
@@
int passphrase_read(const char *tag, unsigned mode, char *buf, size_t sz)
if (pixie_getpass(d.buf, b, sizeof(b)) ||
strcmp(b, buf) != 0) {
memset(b, 0, sizeof(b));
if (pixie_getpass(d.buf, b, sizeof(b)) ||
strcmp(b, buf) != 0) {
memset(b, 0, sizeof(b));
- goto fail;
}
}
dstr_destroy(&d);
}
}
dstr_destroy(&d);