golang/src/crypto
Techassi 9050ce9b33 crypto/x509: include OID in duplicate extension error message
Include the OID in the error message when parsing X.509
certificates. This should ease fixing such issues, because
users can clearly identify the duplicate extension via the
reported error. Previously, this wasn't possible and
required either manually adjusting the standard library or
inspecting the certificate with various debugging tools.

Fixes #66880

Change-Id: I8c22f3a9f9c648ccff66073840830208832a3f85
GitHub-Last-Rev: b855a161d46f208e57f19c87e01140cc77865422
GitHub-Pull-Request: golang/go#67157
Reviewed-on: https://go-review.googlesource.com/c/go/+/583096
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2024-05-06 17:39:08 +00:00
..
aes all: make use of builtin clear 2024-03-27 18:23:49 +00:00
boring all: drop old +build lines 2023-10-19 23:33:27 +00:00
cipher all: make use of builtin clear 2024-03-27 18:23:49 +00:00
des crypto: add available godoc link 2023-10-13 17:09:47 +00:00
dsa crypto: add available godoc link 2023-10-13 17:09:47 +00:00
ecdh all: make use of builtin clear 2024-03-27 18:23:49 +00:00
ecdsa all: make use of builtin clear 2024-03-27 18:23:49 +00:00
ed25519 all: make use of builtin clear 2024-03-27 18:23:49 +00:00
elliptic cmd,crypto/elliptic: fix typos in comments 2024-04-16 17:46:09 +00:00
hmac crypto: add available godoc link 2023-10-13 17:09:47 +00:00
internal crypto/internal/mlkem768: various performance optimizations 2024-05-06 15:27:18 +00:00
md5 crypto: use and test purego tag consistently 2024-03-04 17:29:44 +00:00
rand crypto/rand: close /dev/random on plan9 after seeding 2024-03-25 19:21:31 +00:00
rc4 crypto: add available godoc link 2023-10-13 17:09:47 +00:00
rsa crypto/rsa,crypto/internal/bigmod: improve verify/encrypt performance 2024-01-12 00:56:20 +00:00
sha1 crypto: use and test purego tag consistently 2024-03-04 17:29:44 +00:00
sha256 crypto: use and test purego tag consistently 2024-03-04 17:29:44 +00:00
sha512 cmd/compile,cmd/internal/obj: provide rotation pseudo-instructions for riscv64 2024-03-07 14:57:07 +00:00
subtle crypto/subtle: remove unused code 2024-02-16 15:51:19 +00:00
tls crypto/tls: skip bogo suite on windows builders 2024-04-24 18:15:23 +00:00
x509 crypto/x509: include OID in duplicate extension error message 2024-05-06 17:39:08 +00:00
crypto.go crypto: add available godoc link 2023-10-13 17:09:47 +00:00
issue21104_test.go [dev.boringcrypto] all: merge master (nearly Go 1.10 beta 1) into dev.boringcrypto 2017-12-06 01:03:36 -05:00
purego_test.go crypto: use and test purego tag consistently 2024-03-04 17:29:44 +00:00