diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-02-05 12:42:17 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-02-05 12:42:17 +0000 |
commit | ef4eea9badfb65f05ac24f786b710cc3f27f0e43 (patch) | |
tree | f54abef181ccd6ad5285a5c16b4c159d8b74e932 /md5crypt.c | |
parent | d2ddda4efab29fd8663757634773fa10e557e0f3 (diff) |
- stevesk@cvs.openbsd.org 2001/02/04 08:32:27
[many files; did this manually to our top-level source dir]
unexpand and remove end-of-line whitespace; ok markus@
Diffstat (limited to 'md5crypt.c')
-rw-r--r-- | md5crypt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/md5crypt.c b/md5crypt.c index a9f0f26dd..26007831a 100644 --- a/md5crypt.c +++ b/md5crypt.c | |||
@@ -27,11 +27,11 @@ static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ | |||
27 | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; | 27 | "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |
28 | 28 | ||
29 | static char *magic = "$1$"; /* | 29 | static char *magic = "$1$"; /* |
30 | * This string is magic for | 30 | * This string is magic for |
31 | * this algorithm. Having | 31 | * this algorithm. Having |
32 | * it this way, we can get | 32 | * it this way, we can get |
33 | * get better later on | 33 | * get better later on |
34 | */ | 34 | */ |
35 | 35 | ||
36 | static void | 36 | static void |
37 | to64(char *s, unsigned long v, int n) | 37 | to64(char *s, unsigned long v, int n) |
@@ -45,7 +45,7 @@ to64(char *s, unsigned long v, int n) | |||
45 | int | 45 | int |
46 | is_md5_salt(const char *salt) | 46 | is_md5_salt(const char *salt) |
47 | { | 47 | { |
48 | return (!strncmp(salt, magic, strlen(magic))); | 48 | return (!strncmp(salt, magic, strlen(magic))); |
49 | } | 49 | } |
50 | 50 | ||
51 | /* | 51 | /* |