• Adam Langley's avatar
    crypto/x509: enforce EKU nesting at chain-construction time. · 647648bd
    Adam Langley authored
    crypto/x509 has always enforced EKUs as a chain property (like CAPI, but
    unlike the RFC). With this change, EKUs will be checked at
    chain-building time rather than in a target-specific way.
    
    Thus mis-nested EKUs will now cause a failure in Verify, irrespective of
    the key usages requested in opts. (This mirrors the new behaviour w.r.t.
    name constraints, where an illegal name in the leaf will cause a Verify
    failure, even if the verified name is permitted.).
    
    Updates #15196
    
    Change-Id: Ib6a15b11a9879a9daf5b1d3638d5ebbbcac506e5
    Reviewed-on: https://go-review.googlesource.com/71030
    Run-TryBot: Adam Langley <agl@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    647648bd
Name
Last commit
Last update
..
aes Loading commit data...
cipher Loading commit data...
des Loading commit data...
dsa Loading commit data...
ecdsa Loading commit data...
elliptic Loading commit data...
hmac Loading commit data...
internal/cipherhw Loading commit data...
md5 Loading commit data...
rand Loading commit data...
rc4 Loading commit data...
rsa Loading commit data...
sha1 Loading commit data...
sha256 Loading commit data...
sha512 Loading commit data...
subtle Loading commit data...
tls Loading commit data...
x509 Loading commit data...
crypto.go Loading commit data...
issue21104_test.go Loading commit data...