git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libposix.so_src
/
unistd_crypt.c
diff --git
a/Usermode/Libraries/libposix.so_src/unistd_crypt.c
b/Usermode/Libraries/libposix.so_src/unistd_crypt.c
index
a5eebfa
..
ba58a52
100644
(file)
--- a/
Usermode/Libraries/libposix.so_src/unistd_crypt.c
+++ b/
Usermode/Libraries/libposix.so_src/unistd_crypt.c
@@
-10,5
+10,12
@@
// === CODE ===
char *crypt(const char *key, const char *salt)
{
+ if( *salt == '$' )
+ {
+ // $x$salt$
+ // x=1 : MD5
+ // x=5 : SHA-256
+ // x=6 : SHA-512
+ }
return "YIH14pBTDJvJ6"; // 'password' with the salt YI
}
UCC
git Repository :: git.ucc.asn.au