Lines Matching defs:pac_file
253 static int eap_fast_init_pac_data(struct eap_sm *sm, const char *pac_file,
263 if (os_strncmp(pac_file, "blob://", 7) == 0) {
265 blob = eap_get_config_blob(sm, pac_file + 7);
269 "provisioned", pac_file + 7);
276 rc->f = fopen(pac_file, "rb");
280 "provisioned", pac_file);
408 * @pac_file: Name of the PAC file/blob to load
412 const char *pac_file)
420 if (pac_file == NULL)
423 if (eap_fast_init_pac_data(sm, pac_file, &rc) < 0)
466 err, pac_file, rc.line);
471 count, pac_file);
535 static int eap_fast_write_pac(struct eap_sm *sm, const char *pac_file,
538 if (os_strncmp(pac_file, "blob://", 7) == 0) {
546 blob->name = os_strdup(pac_file + 7);
554 f = fopen(pac_file, "wb");
557 "file '%s' for writing", pac_file);
562 "PACs into '%s'", pac_file);
615 * @pac_file: Name of the PAC file/blob
619 const char *pac_file)
626 if (pac_file == NULL)
651 if (eap_fast_write_pac(sm, pac_file, buf, pos - buf)) {
657 count, pac_file);
745 * @pac_file: Name of the PAC file/blob to load
749 const char *pac_file)
758 if (pac_file == NULL)
761 if (os_strncmp(pac_file, "blob://", 7) == 0) {
762 blob = eap_get_config_blob(sm, pac_file + 7);
766 "provisioned", pac_file + 7);
772 buf = (u8 *) os_readfile(pac_file, &len);
776 "provisioned", pac_file);
790 pac_file);
849 (unsigned long) count, pac_file);
855 pac_file);
868 * @pac_file: Name of the PAC file/blob
872 const char *pac_file)
918 if (eap_fast_write_pac(sm, pac_file, (char *) buf, len)) {
924 "(bin)", (unsigned long) count, pac_file);