Home | History | Annotate | Download | only in eap_server

Lines Matching full:pseudonym

33 	char *pseudonym; /* pseudonym username */
96 " pseudonym CHAR(21) NOT NULL"
100 "pseudonym information");
178 const char *permanent, char *pseudonym)
183 if (!valid_db_string(permanent) || !valid_db_string(pseudonym)) {
184 os_free(pseudonym);
189 "(permanent, pseudonym) VALUES ('%s', '%s');",
190 permanent, pseudonym);
191 os_free(pseudonym);
220 db_get_pseudonym(struct eap_sim_db_data *data, const char *pseudonym)
224 if (!valid_db_string(pseudonym))
228 "SELECT permanent FROM pseudonyms WHERE pseudonym='%s';",
229 pseudonym);
741 os_free(p->pseudonym);
967 * eap_sim_db_get_next_pseudonym - EAP-SIM DB: Get next pseudonym
970 * Returns: Next pseudonym (allocated string) or %NULL on failure
972 * This function is used to generate a pseudonym for EAP-SIM. The returned
973 * pseudonym is not added to database at this point; it will need to be added
1032 * eap_sim_db_add_pseudonym - EAP-SIM DB: Add new pseudonym
1035 * @pseudonym: Pseudonym for this user. This needs to be an allocated buffer,
1040 * This function adds a new pseudonym for EAP-SIM user. EAP-SIM DB is
1041 * responsible of freeing pseudonym buffer once it is not needed anymore.
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);
1061 "pseudonym: %s", p->pseudonym);
1062 os_free(p->pseudonym);
1063 p->pseudonym = pseudonym;
1069 os_free(pseudonym);
1077 os_free(pseudonym);
1080 p->pseudonym = pseudonym;
1083 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Added new pseudonym entry");
1218 * @pseudonym: Pseudonym username
1222 eap_sim_db_get_permanent(struct eap_sim_db_data *data, const char *pseudonym)
1228 return db_get_pseudonym(data, pseudonym);
1233 if (os_strcmp(p->pseudonym, pseudonym) == 0)