Skip to content

Commit

Permalink
don't build openssl on android
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 12, 2022
1 parent 9c1ad50 commit 7d486e9
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/aes.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/aes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/apibridge_1_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

#include "goopenssl.h"
#include "apibridge_1_1.h"
Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/apibridge_1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

// Functions based on OpenSSL 1.1 API, used when building against/running with OpenSSL 1.0.x

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/goopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

#include "goopenssl.h"

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/hmac.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/hmac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/openssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

// Package openssl provides access to OpenSSLCrypto implementation functions.
// Check the constant Enabled to find out whether OpenSSLCrypto is available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

#include "goopenssl.h"

Expand Down
6 changes: 3 additions & 3 deletions src/crypto/internal/backend/internal/openssl/openssl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand All @@ -19,6 +19,6 @@ func TestMain(m *testing.M) {
fmt.Println("skipping on linux platform without OpenSSL")
os.Exit(0)
}
_ = SetFIPS(true) // Skip the error as we still want to run the tests on machines without FIPS support.
_ = SetFIPS(true) // Skip the error as we still want to run the tests on machines without FIPS support.
os.Exit(m.Run())
}
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/rand.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down
4 changes: 2 additions & 2 deletions src/crypto/internal/backend/internal/openssl/sha.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux
//go:build linux && !android
// +build linux,!android

package openssl

Expand Down

0 comments on commit 7d486e9

Please sign in to comment.