diff options
Diffstat (limited to 'src/lib/libc/crypt/crypt.c')
| -rw-r--r-- | src/lib/libc/crypt/crypt.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index a3a1338023..3dce745d5d 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/lib/libc/crypt/crypt.c | |||
| @@ -50,7 +50,7 @@ | |||
| 50 | */ | 50 | */ |
| 51 | 51 | ||
| 52 | #if defined(LIBC_SCCS) && !defined(lint) | 52 | #if defined(LIBC_SCCS) && !defined(lint) |
| 53 | static char rcsid[] = "$OpenBSD: crypt.c,v 1.11 1997/07/09 01:08:14 millert Exp $"; | 53 | static char rcsid[] = "$OpenBSD: crypt.c,v 1.12 1997/09/10 23:15:43 deraadt Exp $"; |
| 54 | #endif /* LIBC_SCCS and not lint */ | 54 | #endif /* LIBC_SCCS and not lint */ |
| 55 | 55 | ||
| 56 | #include <sys/types.h> | 56 | #include <sys/types.h> |
| @@ -595,13 +595,14 @@ crypt(key, setting) | |||
| 595 | extern char *md5crypt __P((const char *, const char *)); | 595 | extern char *md5crypt __P((const char *, const char *)); |
| 596 | extern char *bcrypt __P((const char *, const char *)); | 596 | extern char *bcrypt __P((const char *, const char *)); |
| 597 | 597 | ||
| 598 | if( setting[0] == '$' ) | 598 | if (setting[0] == '$') { |
| 599 | switch(setting[1]) { | 599 | switch (setting[1]) { |
| 600 | case '1': | 600 | case '1': |
| 601 | return (md5crypt(key, setting)); | 601 | return (md5crypt(key, setting)); |
| 602 | default: | 602 | default: |
| 603 | return bcrypt(key, setting); | 603 | return bcrypt(key, setting); |
| 604 | } | 604 | } |
| 605 | } | ||
| 605 | 606 | ||
| 606 | if (!des_initialised) | 607 | if (!des_initialised) |
| 607 | des_init(); | 608 | des_init(); |
