Changeset 647
- Timestamp:
- 05/08/08 11:05:30 (5 months ago)
- Files:
-
- 1 modified
-
trunk/storage/authreg_mysql.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/storage/authreg_mysql.c
r618 r647 23 23 #include "c2s.h" 24 24 #include <mysql.h> 25 #include <unistd.h> 25 26 26 27 #define MYSQL_LU 1024 /* maximum length of username - should correspond to field length */ … … 147 148 break; 148 149 149 case MPC_CRYPT:150 case MPC_CRYPT: 150 151 crypted_pw = crypt(password,db_pw_value); 151 152 ret = (strcmp(crypted_pw, db_pw_value) != 0); … … 153 154 154 155 default: 155 /* should never happen */156 /* should never happen */ 156 157 ret = 1; 157 158 log_write(ar->c2s->log, LOG_ERR, "Unknown encryption type which passed through config check.");
