Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. int sceMlnBridge_msapp_D527DEB0(char *password, u32 len)
  2. {
  3.     char password_ret[5];
  4.    
  5.     /* read the password key */
  6.     if (read_key("/CONFIG/SYSTEM/LOCK", "password", &password_ret, 5) < 0)
  7.     {
  8.         /* error */
  9.         return -1;
  10.     }
  11.    
  12.     return (memcmp(password, password_ret, 4) == 0) ? (0) : (-1);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement