Lines Matching refs:sect

578 	struct sshbuf *sect;  in revoked_certs_generate()  local
581 if ((sect = sshbuf_new()) == NULL) in revoked_certs_generate()
625 if ((r = put_bitmap(sect, bitmap)) != 0) in revoked_certs_generate()
632 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
634 sshbuf_reset(sect); in revoked_certs_generate()
642 sshbuf_reset(sect); in revoked_certs_generate()
653 if ((r = sshbuf_put_u64(sect, in revoked_certs_generate()
664 if ((r = sshbuf_put_u64(sect, rs->lo + i)) != 0) in revoked_certs_generate()
669 if ((r = sshbuf_put_u64(sect, rs->lo)) != 0 || in revoked_certs_generate()
670 (r = sshbuf_put_u64(sect, rs->hi)) != 0) in revoked_certs_generate()
697 if ((r = put_bitmap(sect, bitmap)) != 0) in revoked_certs_generate()
704 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
710 sshbuf_reset(sect); in revoked_certs_generate()
713 if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0) in revoked_certs_generate()
716 if (sshbuf_len(sect) != 0) { in revoked_certs_generate()
718 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
724 sshbuf_free(sect); in revoked_certs_generate()
734 struct sshbuf *sect; in ssh_krl_to_blob() local
740 if ((sect = sshbuf_new()) == NULL) in ssh_krl_to_blob()
755 sshbuf_reset(sect); in ssh_krl_to_blob()
756 if ((r = revoked_certs_generate(rc, sect)) != 0) in ssh_krl_to_blob()
759 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
764 sshbuf_reset(sect); in ssh_krl_to_blob()
767 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
770 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
772 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
775 sshbuf_reset(sect); in ssh_krl_to_blob()
778 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
781 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
784 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
787 sshbuf_reset(sect); in ssh_krl_to_blob()
790 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
793 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
796 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
803 sshbuf_free(sect); in ssh_krl_to_blob()
980 blob_section(struct sshbuf *sect, struct revoked_blob_tree *target_tree, in blob_section() argument
987 while (sshbuf_len(sect) > 0) { in blob_section()
988 if ((r = sshbuf_get_string(sect, &rdata, &rlen)) != 0) in blob_section()
1004 extension_section(struct sshbuf *sect, struct ssh_krl *krl) in extension_section() argument
1011 if ((r = sshbuf_get_cstring(sect, &name, NULL)) != 0 || in extension_section()
1012 (r = sshbuf_get_u8(sect, &critical)) != 0 || in extension_section()
1013 (r = sshbuf_froms(sect, &value)) != 0) { in extension_section()
1019 if (sshbuf_len(sect) != 0) { in extension_section()
1044 struct sshbuf *copy = NULL, *sect = NULL; in ssh_krl_from_blob() local
1091 sshbuf_free(sect); in ssh_krl_from_blob()
1092 sect = NULL; in ssh_krl_from_blob()
1094 (r = sshbuf_froms(copy, &sect)) != 0) in ssh_krl_from_blob()
1100 if ((r = parse_revoked_certs(sect, krl)) != 0) in ssh_krl_from_blob()
1104 if ((r = blob_section(sect, in ssh_krl_from_blob()
1109 if ((r = blob_section(sect, in ssh_krl_from_blob()
1114 if ((r = blob_section(sect, in ssh_krl_from_blob()
1119 if ((r = extension_section(sect, krl)) != 0) in ssh_krl_from_blob()
1124 sshbuf_free(sect); in ssh_krl_from_blob()
1125 sect = NULL; in ssh_krl_from_blob()
1134 if (sect != NULL && sshbuf_len(sect) > 0) { in ssh_krl_from_blob()
1148 sshbuf_free(sect); in ssh_krl_from_blob()