plan9front/sys/src/libsec
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
..
386 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
amd64 libsec: write optimized _chachablock() function for amd64 / sse2 2017-11-20 00:10:35 +01:00
arm Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
arm64 libsec: dummy mkfile for arm64 2019-05-03 21:01:29 +02:00
mips Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
port x509: encode empty sequence as constructed 2021-08-09 15:33:16 +00:00
power Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
spim libsec: dont use mips assembly routines for spim, wrong endianess 2016-04-10 20:22:00 +02:00
mkfile libsec: make #include headers consistent 2016-04-10 20:23:18 +02:00