Lines Matching full:sect

584 	struct sshbuf *sect;  in revoked_certs_generate()  local
587 if ((sect = sshbuf_new()) == NULL) in revoked_certs_generate()
631 if ((r = put_bitmap(sect, bitmap)) != 0) in revoked_certs_generate()
638 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
640 sshbuf_reset(sect); in revoked_certs_generate()
648 sshbuf_reset(sect); in revoked_certs_generate()
659 if ((r = sshbuf_put_u64(sect, in revoked_certs_generate()
670 if ((r = sshbuf_put_u64(sect, rs->lo + i)) != 0) in revoked_certs_generate()
675 if ((r = sshbuf_put_u64(sect, rs->lo)) != 0 || in revoked_certs_generate()
676 (r = sshbuf_put_u64(sect, rs->hi)) != 0) in revoked_certs_generate()
704 if ((r = put_bitmap(sect, bitmap)) != 0) in revoked_certs_generate()
711 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
717 sshbuf_reset(sect); in revoked_certs_generate()
720 if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0) in revoked_certs_generate()
723 if (sshbuf_len(sect) != 0) { in revoked_certs_generate()
725 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
731 sshbuf_free(sect); in revoked_certs_generate()
742 struct sshbuf *sect; in ssh_krl_to_blob() local
749 if ((sect = sshbuf_new()) == NULL) in ssh_krl_to_blob()
764 sshbuf_reset(sect); in ssh_krl_to_blob()
765 if ((r = revoked_certs_generate(rc, sect)) != 0) in ssh_krl_to_blob()
768 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
773 sshbuf_reset(sect); in ssh_krl_to_blob()
776 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
779 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
781 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
784 sshbuf_reset(sect); in ssh_krl_to_blob()
787 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
790 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
793 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
796 sshbuf_reset(sect); in ssh_krl_to_blob()
799 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
802 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
805 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
827 sshbuf_free(sect); in ssh_krl_to_blob()
961 blob_section(struct sshbuf *sect, struct revoked_blob_tree *target_tree, in blob_section() argument
968 while (sshbuf_len(sect) > 0) { in blob_section()
969 if ((r = sshbuf_get_string(sect, &rdata, &rlen)) != 0) in blob_section()
989 struct sshbuf *copy = NULL, *sect = NULL; in ssh_krl_from_blob() local
1124 sshbuf_free(sect); in ssh_krl_from_blob()
1125 sect = NULL; in ssh_krl_from_blob()
1127 (r = sshbuf_froms(copy, &sect)) != 0) in ssh_krl_from_blob()
1133 if ((r = parse_revoked_certs(sect, krl)) != 0) in ssh_krl_from_blob()
1137 if ((r = blob_section(sect, in ssh_krl_from_blob()
1142 if ((r = blob_section(sect, in ssh_krl_from_blob()
1147 if ((r = blob_section(sect, in ssh_krl_from_blob()
1153 sshbuf_free(sect); in ssh_krl_from_blob()
1154 sect = NULL; in ssh_krl_from_blob()
1163 if (sect != NULL && sshbuf_len(sect) > 0) { in ssh_krl_from_blob()
1216 sshbuf_free(sect); in ssh_krl_from_blob()