mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-26 01:44:17 +00:00
support building with GOFIPS140
Signed-off-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
// Copyright 2022-2024 the Pinniped contributors. All Rights Reserved.
|
||||
// Copyright 2022-2026 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// This file overrides securetls_preference_nonfips.go when Pinniped is built in FIPS-only mode using the legacy boring crypto compiler.
|
||||
//go:build fips_strict
|
||||
|
||||
package testlib
|
||||
|
||||
// DefaultCipherSuitePreference returns an expected value for tests.
|
||||
// Because of a bug in nmap, the cipher suite preference is
|
||||
// incorrectly shown as 'client' in some cases.
|
||||
// in fips-only mode, it correctly shows the cipher preference
|
||||
// as 'server', while in non-fips mode it shows as 'client'.
|
||||
const DefaultCipherSuitePreference = "server"
|
||||
func DefaultCipherSuitePreference() string {
|
||||
return "server"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user