Lines Matching defs:pac_file
254 static int eap_teap_init_pac_data(struct eap_sm *sm, const char *pac_file,
264 if (os_strncmp(pac_file, "blob://", 7) == 0) {
267 blob = eap_get_config_blob(sm, pac_file + 7);
271 pac_file + 7);
278 rc->f = fopen(pac_file, "rb");
282 pac_file);
409 * @pac_file: Name of the PAC file/blob to load
413 const char *pac_file)
421 if (!pac_file)
424 if (eap_teap_init_pac_data(sm, pac_file, &rc) < 0)
467 err, pac_file, rc.line);
472 count, pac_file);
536 static int eap_teap_write_pac(struct eap_sm *sm, const char *pac_file,
539 if (os_strncmp(pac_file, "blob://", 7) == 0) {
548 blob->name = os_strdup(pac_file + 7);
557 f = fopen(pac_file, "wb");
561 pac_file);
567 pac_file);
619 * @pac_file: Name of the PAC file/blob
623 const char *pac_file)
630 if (!pac_file)
655 if (eap_teap_write_pac(sm, pac_file, buf, pos - buf)) {
661 count, pac_file);
749 * @pac_file: Name of the PAC file/blob to load
753 const char *pac_file)
762 if (!pac_file)
765 if (os_strncmp(pac_file, "blob://", 7) == 0) {
766 blob = eap_get_config_blob(sm, pac_file + 7);
770 pac_file + 7);
776 buf = (u8 *) os_readfile(pac_file, &len);
780 pac_file);
794 pac_file);
853 (unsigned long) count, pac_file);
859 pac_file);
872 * @pac_file: Name of the PAC file/blob
876 const char *pac_file)
922 if (eap_teap_write_pac(sm, pac_file, (char *) buf, len)) {
928 (unsigned long) count, pac_file);