mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Whole lot of changes to support CE.
This commit is contained in:
parent
aed838b750
commit
31d7bdfe77
28 changed files with 413 additions and 151 deletions
|
@ -117,7 +117,8 @@ check_passphrase_pattern (ctrl_t ctrl, const char *pw)
|
|||
fclose (infp);
|
||||
return 1; /* Error - assume password should not be used. */
|
||||
}
|
||||
rewind (infp);
|
||||
fseek (infp, 0, SEEK_SET);
|
||||
clearerr (infp);
|
||||
|
||||
i = 0;
|
||||
argv[i++] = "--null";
|
||||
|
@ -134,7 +135,8 @@ check_passphrase_pattern (ctrl_t ctrl, const char *pw)
|
|||
result = 0; /* Success; i.e. no match. */
|
||||
|
||||
/* Overwrite our temporary file. */
|
||||
rewind (infp);
|
||||
fseek (infp, 0, SEEK_SET);
|
||||
clearerr (infp);
|
||||
for (i=((strlen (pw)+99)/100)*100; i > 0; i--)
|
||||
putc ('\xff', infp);
|
||||
fflush (infp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue