musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/crypt.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年08月10日 00:20:00 -0400
committerRich Felker <dalias@aerifal.cx>2012年08月10日 00:20:00 -0400
commita02bf5fc508c32e8617ff0528d1cc89ed56e3d03 (patch)
treef4d8201b7308ad5488c383ae7e447a761107387c /src/misc/crypt.c
parent2f437040e7911d9bef239588ea7ed6f4b9102922 (diff)
downloadmusl-a02bf5fc508c32e8617ff0528d1cc89ed56e3d03.tar.gz
add blowfish hash support to crypt
there are still some discussions going on about tweaking the code, but at least thing brings us to the point of having something working in the repository. hopefully the remaining major hashes (md5,sha) will follow soon.
Diffstat (limited to 'src/misc/crypt.c')
-rw-r--r--src/misc/crypt.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/crypt.c b/src/misc/crypt.c
index f35e13d8..fc5c4ee1 100644
--- a/src/misc/crypt.c
+++ b/src/misc/crypt.c
@@ -6,6 +6,6 @@ char *__crypt_r(const char *, const char *, struct crypt_data *);
char *crypt(const char *key, const char *salt)
{
/* Note: update this size when we add more hash types */
- static char buf[21];
+ static char buf[64];
return __crypt_r(key, salt, (struct crypt_data *)buf);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月21日 09:06:00 +0000

AltStyle によって変換されたページ (->オリジナル) /