• Home
  • Raw
  • Download

Lines Matching refs:sect

553 	struct sshbuf *sect;  in revoked_certs_generate()  local
556 if ((sect = sshbuf_new()) == NULL) in revoked_certs_generate()
600 if ((r = put_bitmap(sect, bitmap)) != 0) in revoked_certs_generate()
607 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
609 sshbuf_reset(sect); in revoked_certs_generate()
617 sshbuf_reset(sect); in revoked_certs_generate()
628 if ((r = sshbuf_put_u64(sect, in revoked_certs_generate()
639 if ((r = sshbuf_put_u64(sect, rs->lo + i)) != 0) in revoked_certs_generate()
644 if ((r = sshbuf_put_u64(sect, rs->lo)) != 0 || in revoked_certs_generate()
645 (r = sshbuf_put_u64(sect, rs->hi)) != 0) in revoked_certs_generate()
673 if ((r = put_bitmap(sect, bitmap)) != 0) in revoked_certs_generate()
680 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
686 sshbuf_reset(sect); in revoked_certs_generate()
689 if ((r = sshbuf_put_cstring(sect, rki->key_id)) != 0) in revoked_certs_generate()
692 if (sshbuf_len(sect) != 0) { in revoked_certs_generate()
694 (r = sshbuf_put_stringb(buf, sect)) != 0) in revoked_certs_generate()
700 sshbuf_free(sect); in revoked_certs_generate()
711 struct sshbuf *sect; in ssh_krl_to_blob() local
718 if ((sect = sshbuf_new()) == NULL) in ssh_krl_to_blob()
733 sshbuf_reset(sect); in ssh_krl_to_blob()
734 if ((r = revoked_certs_generate(rc, sect)) != 0) in ssh_krl_to_blob()
737 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
742 sshbuf_reset(sect); in ssh_krl_to_blob()
745 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
748 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
750 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
753 sshbuf_reset(sect); in ssh_krl_to_blob()
756 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
759 if (sshbuf_len(sect) != 0) { in ssh_krl_to_blob()
762 (r = sshbuf_put_stringb(buf, sect)) != 0) in ssh_krl_to_blob()
784 sshbuf_free(sect); in ssh_krl_to_blob()
923 struct sshbuf *copy = NULL, *sect = NULL; in ssh_krl_from_blob() local
1058 sshbuf_free(sect); in ssh_krl_from_blob()
1059 sect = NULL; in ssh_krl_from_blob()
1061 (r = sshbuf_froms(copy, &sect)) != 0) in ssh_krl_from_blob()
1067 if ((r = parse_revoked_certs(sect, krl)) != 0) in ssh_krl_from_blob()
1072 while (sshbuf_len(sect) > 0) { in ssh_krl_from_blob()
1073 if ((r = sshbuf_get_string(sect, in ssh_krl_from_blob()
1092 sshbuf_free(sect); in ssh_krl_from_blob()
1093 sect = NULL; in ssh_krl_from_blob()
1102 if (sect != NULL && sshbuf_len(sect) > 0) { in ssh_krl_from_blob()
1156 sshbuf_free(sect); in ssh_krl_from_blob()