diff options
author | markm <markm@FreeBSD.org> | 2003-06-02 19:29:27 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2003-06-02 19:29:27 +0000 |
commit | ec27a748079eea5188cc0b53a46b236429761fb1 (patch) | |
tree | 8e6b976dc658b3a9d034ea4211cf590ed8f6af57 /lib/libcrypt/crypt.h | |
parent | c9e0f045e69296620fe503e1cdd62d75d4a1f218 (diff) | |
download | FreeBSD-src-ec27a748079eea5188cc0b53a46b236429761fb1.zip FreeBSD-src-ec27a748079eea5188cc0b53a46b236429761fb1.tar.gz |
Add a new hash type. This "NT-hash" is compatible with the password
hashing scheme used in Microsoft's NT machines. IT IS NOT SECURE!
DON'T USE IT! This is for the use of competent sysadmins only!
Submitted by: Michael Bretterklieber
Diffstat (limited to 'lib/libcrypt/crypt.h')
-rw-r--r-- | lib/libcrypt/crypt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypt/crypt.h b/lib/libcrypt/crypt.h index 2488ac8..c677160 100644 --- a/lib/libcrypt/crypt.h +++ b/lib/libcrypt/crypt.h @@ -1,3 +1,4 @@ +/* LINTLIBRARY */ /* * Copyright (c) 1999 * Mark Murray. All rights reserved. @@ -28,11 +29,12 @@ */ /* magic sizes */ +#define MD4_SIZE 16 #define MD5_SIZE 16 char *crypt_des(const char *pw, const char *salt); char *crypt_md5(const char *pw, const char *salt); +char *crypt_nthash(const char *pw, const char *salt); char *crypt_blowfish(const char *pw, const char *salt); extern void _crypt_to64(char *s, u_long v, int n); - |