Home | History | Annotate | Download | only in dist

Lines Matching refs:sect

590 	struct sshbuf *sect;
593 if ((sect = sshbuf_new()) == NULL)
637 if ((r = put_bitmap(sect, bitmap)) != 0)
644 (r = sshbuf_put_stringb(buf, sect)) != 0)
646 sshbuf_reset(sect);
654 sshbuf_reset(sect);
665 if ((r = sshbuf_put_u64(sect,
676 if ((r = sshbuf_put_u64(sect, rs->lo + i)) != 0)
681 if ((r = sshbuf_put_u64(sect, rs->lo)) != 0 ||
682 (r = sshbuf_put_u64(sect, rs->hi)) != 0)
710 if ((r = put_bitmap(sect, bitmap)) != 0)
717 (r = sshbuf_put_stringb(buf, sect)) != 0)
723 sshbuf_reset(sect);
726 if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0)
729 if (sshbuf_len(sect) != 0) {
731 (r = sshbuf_put_stringb(buf, sect)) != 0)
737 sshbuf_free(sect);
747 struct sshbuf *sect;
753 if ((sect = sshbuf_new()) == NULL)
768 sshbuf_reset(sect);
769 if ((r = revoked_certs_generate(rc, sect)) != 0)
772 (r = sshbuf_put_stringb(buf, sect)) != 0)
777 sshbuf_reset(sect);
780 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
783 if (sshbuf_len(sect) != 0) {
785 (r = sshbuf_put_stringb(buf, sect)) != 0)
788 sshbuf_reset(sect);
791 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
794 if (sshbuf_len(sect) != 0) {
797 (r = sshbuf_put_stringb(buf, sect)) != 0)
800 sshbuf_reset(sect);
803 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0)
806 if (sshbuf_len(sect) != 0) {
809 (r = sshbuf_put_stringb(buf, sect)) != 0)
816 sshbuf_free(sect);
993 blob_section(struct sshbuf *sect, struct revoked_blob_tree *target_tree,
1000 while (sshbuf_len(sect) > 0) {
1001 if ((r = sshbuf_get_string(sect, &rdata, &rlen)) != 0)
1017 extension_section(struct sshbuf *sect, struct ssh_krl *krl)
1024 if ((r = sshbuf_get_cstring(sect, &name, NULL)) != 0 ||
1025 (r = sshbuf_get_u8(sect, &critical)) != 0 ||
1026 (r = sshbuf_froms(sect, &value)) != 0) {
1032 if (sshbuf_len(sect) != 0) {
1057 struct sshbuf *copy = NULL, *sect = NULL;
1105 sshbuf_free(sect);
1106 sect = NULL;
1108 (r = sshbuf_froms(copy, &sect)) != 0)
1114 if ((r = parse_revoked_certs(sect, krl)) != 0)
1118 if ((r = blob_section(sect,
1123 if ((r = blob_section(sect,
1128 if ((r = blob_section(sect,
1133 if ((r = extension_section(sect, krl)) != 0)
1138 sshbuf_free(sect);
1139 sect = NULL;
1148 if (sect != NULL && sshbuf_len(sect) > 0) {
1162 sshbuf_free(sect);