Lines Matching refs:verifier
57 struct vrfyplugin *verifier;
533 * verifier for this device has already been loaded. If it
538 if (verifier != NULL) {
539 verifier->imgsize = 0;
540 verifier->flashbuf = 0; /* set by the verifier function */
542 if (verifier->imgfile != NULL) {
543 free(verifier->imgfile);
544 verifier->imgfile = NULL;
547 if (verifier->fwimage != NULL) {
548 free(verifier->fwimage);
549 verifier->fwimage = NULL;
555 "verifier file(1)"));
562 "for a firmware verifier file(2)"));
597 "for a firmware verifier structure"));
638 "a verifier filename\n"));
684 verifier = vrfy; /* a convenience variable */
714 verifier->imgsize = fwstat.st_size;
715 if ((verifier->fwimage = calloc(1, verifier->imgsize))
727 if ((rv = read(imgfd, verifier->fwimage,
728 (size_t)verifier->imgsize)) < verifier->imgsize) {
734 rv, verifier->imgsize,
735 verifier->filename, strerror(errno));
741 if ((verifier->imgfile = calloc(1, strlen(fwimg) + 1)) == NULL) {
746 (void) strlcpy(verifier->imgfile, fwimg, strlen(fwimg) + 1);
752 free(verifier->filename);
753 free(verifier->vendor);
756 verifier->fwimage)
757 free(verifier->fwimage);
759 verifier->filename = NULL;
760 verifier->vendor = NULL;
761 verifier->vendorvrfy = NULL;
762 verifier->fwimage = NULL;
763 (void) dlclose(verifier->handle);
764 verifier->handle = NULL;
765 free(verifier);
769 verifier = NULL;
887 * matches. We then load the appropriate verifier for the
892 * image onto an incompatible device because the verifier
946 gettext("Unable to load verifier "
951 rv = verifier->vendorvrfy(curdev);
953 /* the verifier prints a message */
955 "verifier (%s) for %s :: %s returned "
957 verifier->filename,
1170 if (verifier != NULL) {
1171 free(verifier->filename);
1172 free(verifier->vendor);
1173 free(verifier->imgfile);
1174 free(verifier->fwimage);
1175 verifier->filename = NULL;
1176 verifier->vendor = NULL;
1177 verifier->vendorvrfy = NULL;
1178 verifier->imgfile = NULL;
1179 verifier->fwimage = NULL;
1180 (void) dlclose(verifier->handle);
1181 verifier->handle = NULL;
1182 free(verifier);