omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / om / tls / test / bogo / runner-critical-san.patch
| 1 | diff --git a/ssl/test/runner/certs.go b/ssl/test/runner/certs.go |
| 2 | index 100e360..7071dd5 100644 |
| 3 | --- a/ssl/test/runner/certs.go |
| 4 | +++ b/ssl/test/runner/certs.go |
| 5 | @@ -355,6 +355,9 @@ func (issuer *X509ChainBuilder) Issue(subject X509Info) *X509ChainBuilder { |
| 6 | if len(subject.DNSNames) != 0 { |
| 7 | exts.AddASN1(cbasn1.SEQUENCE, func(ext *cryptobyte.Builder) { |
| 8 | ext.AddASN1ObjectIdentifier(oidSubjectAltName) |
| 9 | + if len(subject.Name.ToRDNSequence()) == 0 { |
| 10 | + ext.AddASN1Boolean(true) // critical: RFC 5280 4.2.1.6, empty subject |
| 11 | + } |
| 12 | ext.AddASN1(cbasn1.OCTET_STRING, func(extVal *cryptobyte.Builder) { |
| 13 | extVal.AddASN1(cbasn1.SEQUENCE, func(names *cryptobyte.Builder) { |
| 14 | for _, dns := range subject.DNSNames { |