comparison sqlickrypt.c @ 152:bc69717ff386

Increase max username length to 20. Length is now enforced by sqlickrypt.
author John "Elwin" Edwards
date Sun, 30 Mar 2014 20:42:48 -0700
parents f1676e81c80a
children
comparison
equal deleted inserted replaced
151:9f9bc41d5006 152:bc69717ff386
116 int status; 116 int status;
117 sqlite3 *db; 117 sqlite3 *db;
118 sqlite3_stmt *qstmt; 118 sqlite3_stmt *qstmt;
119 char salt[20]; 119 char salt[20];
120 120
121 if (strlen(uname) > 20) {
122 return 4;
123 }
124
121 opendb(&db, &qstmt, checkquery); 125 opendb(&db, &qstmt, checkquery);
122 /* Check for existing account in the same transaction with creating it. */ 126 /* Check for existing account in the same transaction with creating it. */
123 status = sqlite3_exec(db, "BEGIN;", NULL, NULL, NULL); 127 status = sqlite3_exec(db, "BEGIN;", NULL, NULL, NULL);
124 if (status) 128 if (status)
125 cleanup(db, qstmt, 3); 129 cleanup(db, qstmt, 3);