Usermode/libposix - Fix types in select, minor in crypt
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / unistd_crypt.c
index a5eebfa..ba58a52 100644 (file)
 // === 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