Lines Matching refs:lineinfo

680 	struct hostkey_foreach_line lineinfo;
683 memset(&lineinfo, 0, sizeof(lineinfo));
694 sshkey_free(lineinfo.key);
695 memset(&lineinfo, 0, sizeof(lineinfo));
696 lineinfo.path = path;
697 lineinfo.linenum = linenum;
698 lineinfo.line = oline;
699 lineinfo.marker = MRK_NONE;
700 lineinfo.status = HKF_STATUS_OK;
701 lineinfo.keytype = KEY_UNSPEC;
708 lineinfo.status = HKF_STATUS_COMMENT;
709 if ((r = callback(&lineinfo, ctx)) != 0)
715 if ((lineinfo.marker = check_markers(&cp)) == MRK_ERROR) {
726 lineinfo.hosts = cp;
731 if ((s = match_maybe_hashed(host, lineinfo.hosts,
734 __func__, path, linenum, lineinfo.hosts);
738 lineinfo.status = HKF_STATUS_MATCHED;
739 lineinfo.match |= HKF_MATCH_HOST |
744 if ((s = match_maybe_hashed(ip, lineinfo.hosts,
748 linenum, lineinfo.hosts);
752 lineinfo.status = HKF_STATUS_MATCHED;
753 lineinfo.match |= HKF_MATCH_IP |
762 lineinfo.status != HKF_STATUS_MATCHED)
774 lineinfo.rawkey = cp = cp2;
782 if ((lineinfo.key = sshkey_new(KEY_UNSPEC)) == NULL) {
787 if (!hostfile_read_key(&cp, &kbits, lineinfo.key)) {
789 sshkey_free(lineinfo.key);
790 lineinfo.key = sshkey_new(KEY_RSA1);
791 if (lineinfo.key == NULL) {
797 lineinfo.key))
803 lineinfo.keytype = lineinfo.key->type;
804 lineinfo.comment = cp;
807 l = strcspn(lineinfo.rawkey, " \t");
809 lineinfo.rawkey[l] == '\0')
811 memcpy(ktype, lineinfo.rawkey, l);
813 lineinfo.keytype = sshkey_type_from_name(ktype);
819 if (lineinfo.keytype == KEY_UNSPEC && l < 8 &&
821 lineinfo.keytype = KEY_RSA1;
834 lineinfo.keytype = KEY_UNSPEC;
836 if (lineinfo.keytype == KEY_UNSPEC) {
838 sshkey_free(lineinfo.key);
839 lineinfo.key = NULL;
840 lineinfo.status = HKF_STATUS_INVALID;
841 if ((r = callback(&lineinfo, ctx)) != 0)
846 if ((r = callback(&lineinfo, ctx)) != 0)
849 sshkey_free(lineinfo.key);