• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssh/

Lines Matching defs:lineinfo

672 	struct hostkey_foreach_line lineinfo;
675 memset(&lineinfo, 0, sizeof(lineinfo));
686 free(lineinfo.line);
687 sshkey_free(lineinfo.key);
688 memset(&lineinfo, 0, sizeof(lineinfo));
689 lineinfo.path = path;
690 lineinfo.linenum = linenum;
691 lineinfo.line = xstrdup(line);
692 lineinfo.marker = MRK_NONE;
693 lineinfo.status = HKF_STATUS_OK;
694 lineinfo.keytype = KEY_UNSPEC;
701 lineinfo.status = HKF_STATUS_COMMENT;
702 if ((r = callback(&lineinfo, ctx)) != 0)
708 if ((lineinfo.marker = check_markers(&cp)) == MRK_ERROR) {
719 lineinfo.hosts = cp;
724 if ((s = match_maybe_hashed(host, lineinfo.hosts,
727 __func__, path, linenum, lineinfo.hosts);
731 lineinfo.status = HKF_STATUS_MATCHED;
732 lineinfo.match |= HKF_MATCH_HOST |
737 if ((s = match_maybe_hashed(ip, lineinfo.hosts,
741 linenum, lineinfo.hosts);
745 lineinfo.status = HKF_STATUS_MATCHED;
746 lineinfo.match |= HKF_MATCH_IP |
755 lineinfo.status != HKF_STATUS_MATCHED)
767 lineinfo.rawkey = cp = cp2;
775 if ((lineinfo.key = sshkey_new(KEY_UNSPEC)) == NULL) {
780 if (!hostfile_read_key(&cp, &kbits, lineinfo.key)) {
783 lineinfo.keytype = lineinfo.key->type;
784 lineinfo.comment = cp;
787 l = strcspn(lineinfo.rawkey, " \t");
789 lineinfo.rawkey[l] == '\0')
791 memcpy(ktype, lineinfo.rawkey, l);
793 lineinfo.keytype = sshkey_type_from_name(ktype);
799 if (lineinfo.keytype == KEY_UNSPEC && l < 8 &&
814 lineinfo.keytype = KEY_UNSPEC;
816 if (lineinfo.keytype == KEY_UNSPEC) {
818 sshkey_free(lineinfo.key);
819 lineinfo.key = NULL;
820 lineinfo.status = HKF_STATUS_INVALID;
821 if ((r = callback(&lineinfo, ctx)) != 0)
826 if ((r = callback(&lineinfo, ctx)) != 0)
829 sshkey_free(lineinfo.key);
830 free(lineinfo.line);