/* Copyright (c) 2004-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "password-scheme.h"
#include "randgen.h"
#include "doveadm.h"
#include "askpass.h"
#include "module-dir.h"
#include <ctype.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
{
int c;
i_zero(&gen_params);
switch (c) {
case 'l':
list_schemes = 1;
break;
case 'p':
break;
case 'r':
break;
case 's':
break;
case 't':
break;
case 'u':
break;
case 'V':
break;
case '?':
default:
}
}
if (list_schemes) {
unsigned int i, count;
for (i = 0; i < count; i++)
printf("\n");
exit(0);
}
const char *check;
i_error("Passwords don't match!");
if (--lives == 0)
exit(1);
}
}
if (reverse_verify) {
const unsigned char *raw_password;
const char *error;
i_fatal("Missing {scheme} prefix from hash");
}
&error) <= 0)
i_fatal("reverse password verification check failed: %s",
error);
}
} else {
}
}
cmd_pw, "pw",
"[-l] [-p plaintext] [-r rounds] [-s scheme] [-t hash] [-u user] [-V]"
};