]> Cypherpunks repositories - gostls13.git/commit
crypto/x509/internal/macos: use APIs available on ios
authorRoland Shoemaker <roland@golang.org>
Tue, 16 Nov 2021 20:33:03 +0000 (12:33 -0800)
committerRoland Shoemaker <roland@golang.org>
Fri, 19 Nov 2021 21:57:03 +0000 (21:57 +0000)
commit6027b2183d9a63a11f92d392fd2296e7b88402fc
tree1d4a40fe9cb9b9b69341459d8d462d34fbca49ca
parentba9f0f6665273ab5202d829ae4aa0c5fa2cebb32
crypto/x509/internal/macos: use APIs available on ios

Use SecCertificateCopyData instead of SecItemExport, which is only
available on macOS.

Updates #49616

Change-Id: Ieda33894930d23c6dab6112ee18120f8a440083b
Reviewed-on: https://go-review.googlesource.com/c/go/+/364554
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/internal/macos/security.go
src/crypto/x509/internal/macos/security.s
src/crypto/x509/root_darwin.go