plan9fox/sys
Ori Bernstein c6a9c55de7 x509: encode empty sequence as constructed
According to the ASN.1 BER spec, we should be encoding
all sequences (including empty ones) as constructed:

	8.9.1 The encoding of a sequence value shall be constructed.
	8.10.1 The encoding of a sequence-of value shall be constructed.
	8.11.1 The encoding of a set value shall be constructed.
	8.12.1 The encoding of a set-of value shall be constructed.

However, we were only setting them as constructed when the
list was non-empty.

This changes it, and makes letsencrypt happy with the CSRs that
we generate.
2021-08-09 15:33:16 +00:00
..
doc /sys/doc: fix mkfile to and remove files that now can be regenerated 2017-05-09 16:23:48 +02:00
games/lib fortunes: unremove 2021-07-08 15:47:49 +00:00
include libc: use usize for sbrk() increment 2021-07-25 16:03:14 +00:00
lib troff: fix mangled fonts and character files 2021-06-15 16:13:59 +00:00
man 9p(2): fix a typo (thanks humm) 2021-08-05 13:01:35 +00:00
src x509: encode empty sequence as constructed 2021-08-09 15:33:16 +00:00