Lines Matching defs:permanent
32 char *permanent; /* permanent username */
95 " permanent CHAR(21) PRIMARY KEY,"
116 " permanent CHAR(21) PRIMARY KEY,"
178 const char *permanent, char *pseudonym)
183 if (!valid_db_string(permanent) || !valid_db_string(pseudonym)) {
189 "(permanent, pseudonym) VALUES ('%s', '%s');",
190 permanent, pseudonym);
209 if (os_strcmp(col[i], "permanent") == 0 && argv[i]) {
228 "SELECT permanent FROM pseudonyms WHERE pseudonym='%s';",
239 static int db_add_reauth(struct eap_sim_db_data *data, const char *permanent,
246 if (!valid_db_string(permanent) || !valid_db_string(reauth_id)) {
254 "(permanent, reauth_id, counter%s%s%s%s) "
260 permanent, reauth_id, counter);
310 if (os_strcmp(col[i], "permanent") == 0 && argv[i]) {
313 reauth->permanent = data->db_tmp_identity;
350 if (data->db_tmp_reauth.permanent == NULL)
361 if (!valid_db_string(reauth->permanent))
364 "DELETE FROM reauth WHERE permanent='%s';",
365 reauth->permanent);
740 os_free(p->permanent);
748 os_free(r->permanent);
839 * @username: Permanent username (prefix | IMSI)
1034 * @permanent: Permanent username
1044 const char *permanent, char *pseudonym)
1047 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Add pseudonym '%s' for permanent "
1048 "username '%s'", pseudonym, permanent);
1053 return db_add_pseudonym(data, permanent, pseudonym);
1056 if (os_strcmp(permanent, p->permanent) == 0)
1074 p->permanent = os_strdup(permanent);
1075 if (p->permanent == NULL) {
1090 const char *permanent,
1096 if (os_strcmp(r->permanent, permanent) == 0)
1113 r->permanent = os_strdup(permanent);
1114 if (r->permanent == NULL) {
1133 * @permanent: Permanent username
1146 int eap_sim_db_add_reauth(struct eap_sim_db_data *data, const char *permanent,
1151 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Add reauth_id '%s' for permanent "
1152 "identity '%s'", reauth_id, permanent);
1156 return db_add_reauth(data, permanent, reauth_id, counter, mk,
1159 r = eap_sim_db_add_reauth_data(data, permanent, reauth_id, counter);
1173 * @permanent: Permanent username
1188 const char *permanent, char *reauth_id,
1194 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Add reauth_id '%s' for permanent "
1195 "identity '%s'", reauth_id, permanent);
1199 return db_add_reauth(data, permanent, reauth_id, counter, NULL,
1202 r = eap_sim_db_add_reauth_data(data, permanent, reauth_id, counter);
1216 * eap_sim_db_get_permanent - EAP-SIM DB: Get permanent identity
1219 * Returns: Pointer to permanent username or %NULL if not found
1234 return p->permanent;
1305 * @username: Permanent username (prefix | IMSI)
1410 * @username: Permanent username