47 |
#else |
#else |
48 |
" -p INFILE [OUTFILE]\n", |
" -p INFILE [OUTFILE]\n", |
49 |
#endif |
#endif |
50 |
"Convert GNATS v3 gnatsd.access passwords to version 4 format.\n\ |
"Convert GNATS v3 gnatsd*.access passwords to version 4 format.\n", |
51 |
Supports plaintext, DES crypt and MD5 output.\n\ |
#ifdef HAVE_LIBCRYPT |
52 |
\n", |
"Supports plaintext, DES crypt and MD5 output.\n", |
53 |
|
#else |
54 |
|
"Supports only unencrypted plaintext (compiled without `libcrypt').\n", |
55 |
|
#endif |
56 |
|
"\n", |
57 |
#ifdef HAVE_LIBCRYPT |
#ifdef HAVE_LIBCRYPT |
58 |
" -c --crypt Use crypt() encryption of passwords.\n\ |
" -c --crypt Use crypt() encryption of passwords.\n\ |
59 |
-m --md5 Use MD5 encryption.\n", |
-m --md5 Use MD5 encryption.\n", |
248 |
int |
int |
249 |
main (int argc, char **argv) |
main (int argc, char **argv) |
250 |
{ |
{ |
251 |
|
#ifdef HAVE_LIBCRYPT |
252 |
static const char* const OPTSTRING = "pcmVh"; |
static const char* const OPTSTRING = "pcmVh"; |
253 |
|
#else |
254 |
|
static const char* const OPTSTRING = "pVh"; |
255 |
|
#endif |
256 |
int optc = 0; |
int optc = 0; |
257 |
int opt_index = 0; |
int opt_index = 0; |
258 |
Crypt_Type crypttype = NONE; |
Crypt_Type crypttype = NONE; |