Lines Matching defs:sm
254 static int eap_teap_init_pac_data(struct eap_sm *sm, const char *pac_file,
267 blob = eap_get_config_blob(sm, pac_file + 7);
407 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
412 int eap_teap_load_pac(struct eap_sm *sm, struct eap_teap_pac **pac_root,
424 if (eap_teap_init_pac_data(sm, pac_file, &rc) < 0)
536 static int eap_teap_write_pac(struct eap_sm *sm, const char *pac_file,
553 eap_set_config_blob(sm, blob);
617 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
622 int eap_teap_save_pac(struct eap_sm *sm, struct eap_teap_pac *pac_root,
655 if (eap_teap_write_pac(sm, pac_file, buf, pos - buf)) {
747 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
752 int eap_teap_load_pac_bin(struct eap_sm *sm, struct eap_teap_pac **pac_root,
766 blob = eap_get_config_blob(sm, pac_file + 7);
870 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
875 int eap_teap_save_pac_bin(struct eap_sm *sm, struct eap_teap_pac *pac_root,
922 if (eap_teap_write_pac(sm, pac_file, (char *) buf, len)) {