From 0184fe5ece4f84fda9db04d2472b76efcaa8ef55 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 27 Apr 2022 09:02:53 -0400 Subject: [dev.boringcrypto] crypto/x509: remove VerifyOptions.IsBoring This API was added only for BoringCrypto, never shipped in standard Go. This API is also not compatible with the expected future evolution of crypto/x509, as we move closer to host verifiers on macOS and Windows. If we want to merge BoringCrypto into the main tree, it is best not to have differing API. So instead of a hook set by crypto/tls, move the actual check directly into crypto/x509, eliminating the need for exposed API. For #51940. Change-Id: Ia2ae98c745de818d39501777014ea8166cab0b03 Reviewed-on: https://go-review.googlesource.com/c/go/+/395878 TryBot-Result: Gopher Robot Run-TryBot: Russ Cox Reviewed-by: Roland Shoemaker --- src/crypto/internal/boring/stub.s | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/crypto/internal/boring/stub.s (limited to 'src/crypto/internal') diff --git a/src/crypto/internal/boring/stub.s b/src/crypto/internal/boring/stub.s new file mode 100644 index 0000000000..59f2deeb60 --- /dev/null +++ b/src/crypto/internal/boring/stub.s @@ -0,0 +1,6 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// This file is here to silence an error about registerCache not having a body. +// (The body is provided by package runtime.) -- cgit v1.3