mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
don't skipnear if warnnear is set
This commit is contained in:
4
main.c
4
main.c
@@ -89,9 +89,9 @@ VEC_STRUCT(tstatsvec,struct tstatstruct);
|
|||||||
|
|
||||||
static void printhelp(FILE *out,const char *progname)
|
static void printhelp(FILE *out,const char *progname)
|
||||||
{
|
{
|
||||||
|
fprintf(out,
|
||||||
// 0 1 2 3 4 5 6 7
|
// 0 1 2 3 4 5 6 7
|
||||||
// 01234567890123456789012345678901234567890123456789012345678901234567890123456789
|
// 01234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||||
fprintf(out,
|
|
||||||
"Usage: %s FILTER [FILTER...] [OPTION]\n"
|
"Usage: %s FILTER [FILTER...] [OPTION]\n"
|
||||||
" %s -f FILTERFILE [OPTION]\n"
|
" %s -f FILTERFILE [OPTION]\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
@@ -614,6 +614,8 @@ int main(int argc,char **argv)
|
|||||||
"CAUTION: avoid using keys generated with the same password for unrelated\n"
|
"CAUTION: avoid using keys generated with the same password for unrelated\n"
|
||||||
" services, as single leaked key may help an attacker to regenerate\n"
|
" services, as single leaked key may help an attacker to regenerate\n"
|
||||||
" related keys; to silence this warning, pass --skipnear or --warnnear.\n");
|
" related keys; to silence this warning, pass --skipnear or --warnnear.\n");
|
||||||
|
if (pw_warnnear)
|
||||||
|
pw_skipnear = 0;
|
||||||
if (checkpointfile) {
|
if (checkpointfile) {
|
||||||
memcpy(orig_determseed,determseed,sizeof(determseed));
|
memcpy(orig_determseed,determseed,sizeof(determseed));
|
||||||
// Read current checkpoint position if file exists
|
// Read current checkpoint position if file exists
|
||||||
|
|||||||
Reference in New Issue
Block a user