Skip to content

Commit 8bcce40

Browse files
committed
fixup
1 parent 09ef208 commit 8bcce40

File tree

2 files changed

+6
-31
lines changed

2 files changed

+6
-31
lines changed

patches/0002-Vendor-crypto-backends.patch

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Use a 'go' that was recently built by the current branch to ensure stable result
1010
src/go.mod | 6 +
1111
src/go.sum | 6 +
1212
src/go/build/deps_test.go | 17 +-
13-
src/go/build/vendor_test.go | 2 +
13+
src/go/build/vendor_test.go | 3 +
1414
.../golang-fips/openssl/v2/.gitignore | 1 +
1515
.../golang-fips/openssl/v2/.gitleaks.toml | 9 +
1616
.../github.com/golang-fips/openssl/v2/LICENSE | 20 +
@@ -101,7 +101,7 @@ Use a 'go' that was recently built by the current branch to ensure stable result
101101
.../internal/subtle/aliasing.go | 32 +
102102
.../internal/sysdll/sys_windows.go | 55 ++
103103
src/vendor/modules.txt | 16 +
104-
95 files changed, 13706 insertions(+), 3 deletions(-)
104+
95 files changed, 13707 insertions(+), 3 deletions(-)
105105
create mode 100644 src/crypto/internal/backend/deps_ignore.go
106106
create mode 100644 src/vendor/github.com/golang-fips/openssl/v2/.gitignore
107107
create mode 100644 src/vendor/github.com/golang-fips/openssl/v2/.gitleaks.toml
@@ -303,15 +303,16 @@ index e3e01077c18b17..e017efb1562379 100644
303303
}
304304
fset := token.NewFileSet()
305305
diff --git a/src/go/build/vendor_test.go b/src/go/build/vendor_test.go
306-
index 7f6237ffd59c11..1d0b9b20e9b1d4 100644
306+
index 7f6237ffd59c11..6092c93d4c5b26 100644
307307
--- a/src/go/build/vendor_test.go
308308
+++ b/src/go/build/vendor_test.go
309-
@@ -22,6 +22,8 @@ var allowedPackagePrefixes = []string{
309+
@@ -22,6 +22,9 @@ var allowedPackagePrefixes = []string{
310310
"github.com/google/pprof",
311311
"github.com/ianlancetaylor/demangle",
312312
"rsc.io/markdown",
313313
+ "github.com/golang-fips/openssl",
314314
+ "github.com/microsoft/go-crypto-winnative",
315+
+ "github.com/microsoft/go-crypto-darwin",
315316
}
316317

317318
// Verify that the vendor directories contain only packages matching the list above.

patches/0007-Add-Darwin-crypto-backend.patch

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ Subject: [PATCH] Add Darwin crypto backend
88
.../internal/backend/bbig/big_darwin.go | 12 +
99
src/crypto/internal/backend/darwin_darwin.go | 359 ++++++++++++++++++
1010
src/crypto/internal/backend/fips140/darwin.go | 11 +
11-
src/crypto/rsa/boring.go | 1 -
1211
src/crypto/rsa/darwin.go | 71 ++++
13-
src/go/build/vendor_test.go | 1 +
1412
src/net/lookup_test.go | 3 +
1513
src/runtime/pprof/vminfo_darwin_test.go | 6 +
16-
9 files changed, 465 insertions(+), 1 deletion(-)
14+
7 files changed, 464 insertions(+)
1715
create mode 100644 src/crypto/internal/backend/bbig/big_darwin.go
1816
create mode 100644 src/crypto/internal/backend/darwin_darwin.go
1917
create mode 100644 src/crypto/internal/backend/fips140/darwin.go
@@ -432,18 +430,6 @@ index 00000000000000..ef5af5d956163e
432430
+func systemFIPSMode() bool {
433431
+ return false
434432
+}
435-
diff --git a/src/crypto/rsa/boring.go b/src/crypto/rsa/boring.go
436-
index b9f9d3154f2589..28d16a89f6a1cf 100644
437-
--- a/src/crypto/rsa/boring.go
438-
+++ b/src/crypto/rsa/boring.go
439-
@@ -66,7 +66,6 @@ func boringPrivateKey(priv *PrivateKey) (*boring.PrivateKeyRSA, error) {
440-
if b != nil && privateKeyEqual(&b.orig, priv) {
441-
return b.key, nil
442-
}
443-
-
444-
b = new(boringPriv)
445-
b.orig = copyPrivateKey(priv)
446-
447433
diff --git a/src/crypto/rsa/darwin.go b/src/crypto/rsa/darwin.go
448434
new file mode 100644
449435
index 00000000000000..1b9c63523ee90e
@@ -521,18 +507,6 @@ index 00000000000000..1b9c63523ee90e
521507
+ })
522508
+ return builder.Bytes()
523509
+}
524-
diff --git a/src/go/build/vendor_test.go b/src/go/build/vendor_test.go
525-
index 1d0b9b20e9b1d4..6092c93d4c5b26 100644
526-
--- a/src/go/build/vendor_test.go
527-
+++ b/src/go/build/vendor_test.go
528-
@@ -24,6 +24,7 @@ var allowedPackagePrefixes = []string{
529-
"rsc.io/markdown",
530-
"github.com/golang-fips/openssl",
531-
"github.com/microsoft/go-crypto-winnative",
532-
+ "github.com/microsoft/go-crypto-darwin",
533-
}
534-
535-
// Verify that the vendor directories contain only packages matching the list above.
536510
diff --git a/src/net/lookup_test.go b/src/net/lookup_test.go
537511
index 514cbd098ae772..8ec689416dde1d 100644
538512
--- a/src/net/lookup_test.go

0 commit comments

Comments
 (0)