diff options
| author | Xin LI <delphij@FreeBSD.org> | 2015-02-25 20:47:25 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2015-02-25 20:47:25 +0000 |
| commit | 3b557094a26f3b3ccfd50f30b075aa3c4f13e68a (patch) | |
| tree | 78646fcf0f6ce50f87ac31acb5adae2645697504 | |
| parent | 65f2833127b682824c341da3278afd0a616f670f (diff) | |
Notes
| -rw-r--r-- | usr.bin/enigma/enigma.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/enigma/enigma.c b/usr.bin/enigma/enigma.c index 893766e53de7a..e476e65e139bc 100644 --- a/usr.bin/enigma/enigma.c +++ b/usr.bin/enigma/enigma.c @@ -43,6 +43,11 @@ setup(char *pw) int32_t seed; char *cryptpw; + if (crypt_set_format("des") == 0) { + fprintf(stderr, "crypt_set_format(\"des\") failed.\n"); + exit(1); + } + strlcpy(salt, pw, sizeof(salt)); cryptpw = crypt(pw, salt); if (cryptpw == NULL) { |
