aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/internal/boring/boring.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-09-20 13:50:35 -0400
committerRuss Cox <rsc@golang.org>2017-09-22 15:58:43 +0000
commit3ed08db261fcb470b5880791a1a087e28c086b8c (patch)
tree91be79e3394689f5774ac4ad3db4d11f48b66825 /src/crypto/internal/boring/boring.go
parent2ba76155cd0762375b8e19a500a5b1fb875ff73b (diff)
downloadgo-3ed08db261fcb470b5880791a1a087e28c086b8c.tar.gz
go-3ed08db261fcb470b5880791a1a087e28c086b8c.zip
[dev.boringcrypto] crypto/tls/fipsonly: new package to force FIPS-allowed TLS settings
Change-Id: I3268cab2de8aed9e2424e9c3bc7667083bc5e1ce Reviewed-on: https://go-review.googlesource.com/65250 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/crypto/internal/boring/boring.go')
-rw-r--r--src/crypto/internal/boring/boring.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crypto/internal/boring/boring.go b/src/crypto/internal/boring/boring.go
index 98aa851de7..9ccad7eb5d 100644
--- a/src/crypto/internal/boring/boring.go
+++ b/src/crypto/internal/boring/boring.go
@@ -11,7 +11,10 @@ package boring
// #include "goboringcrypto.h"
import "C"
-import "math/big"
+import (
+ "crypto/internal/boring/sig"
+ "math/big"
+)
const available = true
@@ -20,6 +23,7 @@ func init() {
if C._goboringcrypto_FIPS_mode() != 1 {
panic("boringcrypto: not in FIPS mode")
}
+ sig.BoringCrypto()
}
// Unreachable marks code that should be unreachable