doveadm-pw.c revision 12196db8ca0facc9ddab10aea9099ab9adc323a7
/* Copyright (C) 2004 Joshua Goodall */
#include "lib.h"
#include "array.h"
#include "password-scheme.h"
#include "randgen.h"
#include "doveadm.h"
#include "askpass.h"
#include <ctype.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define DEFAULT_SCHEME "CRAM-MD5"
{
random_init();
switch (ch) {
case 'l':
lflag = 1;
break;
case 'p':
break;
case 's':
break;
case 'u':
break;
case 'V':
Vflag = 1;
break;
case '?':
default:
}
}
if (lflag) {
const struct password_scheme *const *schemes;
unsigned int i, count;
for (i = 0; i < count; i++)
printf("\n");
exit(0);
}
const char *check;
static int lives = 3;
if (--lives == 0)
exit(1);
}
}
exit(1);
}
if (Vflag == 1) {
const unsigned char *raw_password;
exit(2);
}
"reverse password verification check failed\n");
exit(2);
}
} else
}
struct doveadm_cmd doveadm_cmd_pw = {
" -l List known password schemes\n"
" -p plaintext New password\n"
" -s scheme Password scheme\n"
" -u user Username (if scheme uses it)\n"
" -V Internally verify the hash\n"
};