Changeset 7917 for trunk/Ohana/src/opihi/pantasks/CheckPassword.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/CheckPassword.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/CheckPassword.c
r7892 r7917 15 15 int status; 16 16 17 if (DEBUG) fprintf (stderr, "waiting for password %s\n", PASSWORD);17 if (DEBUG) gprint (GP_ERR, "waiting for password %s\n", PASSWORD); 18 18 19 19 status = ExpectCommand (BindSocket, strlen(PASSWORD), 0.1, &message); 20 20 if (status != 0) { 21 if (DEBUG) fprintf (stderr, "failed connection\n");21 if (DEBUG) gprint (GP_ERR, "failed connection\n"); 22 22 FreeIOBuffer (&message); 23 23 close (BindSocket); … … 25 25 } 26 26 if (strncmp (message.buffer, PASSWORD, strlen(PASSWORD))) { 27 if (DEBUG) fprintf (stderr, "invalid password\n");27 if (DEBUG) gprint (GP_ERR, "invalid password\n"); 28 28 close (BindSocket); 29 29 return (FALSE); 30 30 } 31 if (DEBUG) fprintf (stderr, "accepted password (%s)\n", message.buffer);31 if (DEBUG) gprint (GP_ERR, "accepted password (%s)\n", message.buffer); 32 32 33 33 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
