~/bend-docscommunity

LAWS.bend open laws/TODOs

raw source on the hub · import element-x509@0.1.0.0/LAWS.bend as LAWS

2 imports
import Base
import ./cert.bend as X509

Laws

law x509_wildcard_one_label provedin PROOF.bendsource · line 7 · raw

{String.append(Bool.pick(String, 0xd276682e9f8b76d0870e36f1d43799d6/cert.name_matches("*.example.com", "a.example.com"), "y", "n"), String.append(Bool.pick(String, 0xd276682e9f8b76d0870e36f1d43799d6/cert.name_matches("*.example.com", "example.com"), "y", "n"), String.append(Bool.pick(String, 0xd276682e9f8b76d0870e36f1d43799d6/cert.name_matches("*.example.com", "a.b.example.com"), "y", "n"), Bool.pick(String, 0xd276682e9f8b76d0870e36f1d43799d6/cert.name_matches("example.com", "example.com"), "y", "n")))) == "ynny" : String}

RFC 6125 6.4.3: "*.example.com" names exactly one leftmost label.