doveadm-pw.c revision 12b380e64b8ac3553136e2423a20d875009070ef
/* 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"
{
unsigned int rounds = 0;
int c;
random_init();
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) {
const struct password_scheme *const *schemes;
unsigned int i, count;
for (i = 0; i < count; i++)
printf("\n");
exit(0);
}
if (rounds > 0)
const char *check;
static int lives = 3;
if (--lives == 0)
exit(1);
}
}
exit(1);
}
if (reverse_verify) {
const unsigned char *raw_password;
const char *error;
exit(2);
}
}
&error) <= 0) {
error);
exit(2);
}
"reverse password verification check failed: %s\n", error);
exit(2);
}
} else {
}
}
struct doveadm_cmd doveadm_cmd_pw = {
cmd_pw, "pw",
"[-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]"
};