-
Notifications
You must be signed in to change notification settings - Fork 20
Add the fipsonly package when building with boringcrypto #3246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| //go:build boringcrypto | ||
|
|
||
| package fips | ||
|
|
||
| import _ "crypto/tls/fipsonly" // including this package when boringcrypto is enabled forces tls to use fips settings only |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package fips | ||
|
|
||
| // This file exists to suppress build errors when not building with boringcrypto | ||
|
Comment on lines
+1
to
+3
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason we use the "_" here? Could we not simply do "github.com/confluentinc/cli/v4/pkg/fips" like other cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's because we don't actually call the fips package anywhere in the file, so
_prevent a compile error.This one is weird in that all you need to do for it to take effect is to include the underlying package anywhere in your code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i see. Sounds good