summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt/crypt.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2011-04-09 14:02:04 +0000
committermarkm <markm@FreeBSD.org>2011-04-09 14:02:04 +0000
commit007c1b95e1cf5a923c2f9c02e31c5076fd19b33c (patch)
tree77707a3cb29b813530fe64df7c6a723558bd5ddc /lib/libcrypt/crypt.h
parent4f5a8eb04f8d12eec8824c3bc241d96ffdc42985 (diff)
downloadFreeBSD-src-007c1b95e1cf5a923c2f9c02e31c5076fd19b33c.zip
FreeBSD-src-007c1b95e1cf5a923c2f9c02e31c5076fd19b33c.tar.gz
Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn't
hurt us. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month
Diffstat (limited to 'lib/libcrypt/crypt.h')
-rw-r--r--lib/libcrypt/crypt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libcrypt/crypt.h b/lib/libcrypt/crypt.h
index c677160..6a73fc9 100644
--- a/lib/libcrypt/crypt.h
+++ b/lib/libcrypt/crypt.h
@@ -36,5 +36,8 @@ 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);
+char *sha256_crypt (const char *pw, const char *salt);
+char *sha512_crypt (const char *pw, const char *salt);
extern void _crypt_to64(char *s, u_long v, int n);
+extern void b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, int *buflen, char **cp);
OpenPOWER on IntegriCloud