]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: return typed verification errors on macOS
authorRoland Shoemaker <roland@golang.org>
Tue, 22 Nov 2022 00:47:39 +0000 (16:47 -0800)
committerRoland Shoemaker <roland@golang.org>
Wed, 21 Dec 2022 20:05:17 +0000 (20:05 +0000)
commitc9a10d48a8f0e8479f5b9d98c5bd81b64a90d23d
tree418903120dbcf65819a52750add4a42152a90902
parent2321abc5e9e3fab42384347a95209082fa53013a
crypto/x509: return typed verification errors on macOS

On macOS return the error code from SecTrustEvaluateWithError, and use
it to create typed errors that can be returned from Verify.

Fixes #56891

Change-Id: Ib597ce202abb60702f730e75da583894422e4c14
Reviewed-on: https://go-review.googlesource.com/c/go/+/452620
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/x509/internal/macos/corefoundation.go
src/crypto/x509/internal/macos/corefoundation.s
src/crypto/x509/internal/macos/security.go
src/crypto/x509/root_darwin.go
src/crypto/x509/root_darwin_test.go