Lines Matching refs:pac_file
254 static int eap_fast_init_pac_data(struct eap_sm *sm, const char *pac_file,
264 if (os_strncmp(pac_file, "blob://", 7) == 0) {
266 blob = eap_get_config_blob(sm, pac_file + 7);
270 "provisioned", pac_file + 7);
277 rc->f = fopen(pac_file, "rb");
281 "provisioned", pac_file);
409 * @pac_file: Name of the PAC file/blob to load
413 const char *pac_file)
421 if (pac_file == NULL)
424 if (eap_fast_init_pac_data(sm, pac_file, &rc) < 0)
467 err, pac_file, rc.line);
472 count, pac_file);
536 static int eap_fast_write_pac(struct eap_sm *sm, const char *pac_file,
539 if (os_strncmp(pac_file, "blob://", 7) == 0) {
547 blob->name = os_strdup(pac_file + 7);
555 f = fopen(pac_file, "wb");
558 "file '%s' for writing", pac_file);
563 "PACs into '%s'", pac_file);
616 * @pac_file: Name of the PAC file/blob
620 const char *pac_file)
627 if (pac_file == NULL)
652 if (eap_fast_write_pac(sm, pac_file, buf, pos - buf)) {
658 count, pac_file);
748 * @pac_file: Name of the PAC file/blob to load
752 const char *pac_file)
761 if (pac_file == NULL)
764 if (os_strncmp(pac_file, "blob://", 7) == 0) {
765 blob = eap_get_config_blob(sm, pac_file + 7);
769 "provisioned", pac_file + 7);
775 buf = (u8 *) os_readfile(pac_file, &len);
779 "provisioned", pac_file);
793 pac_file);
854 (unsigned long) count, pac_file);
860 pac_file);
873 * @pac_file: Name of the PAC file/blob
877 const char *pac_file)
923 if (eap_fast_write_pac(sm, pac_file, (char *) buf, len)) {
929 "(bin)", (unsigned long) count, pac_file);