- 
                Notifications
    You must be signed in to change notification settings 
- Fork 15
feat: [SVLS-6272] fips features for bottlecap #1028
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
da8fb6d
              c359b47
              d4c5263
              ec8fcac
              e0ec4f6
              c4f7c77
              83af1e5
              630dccc
              fff172d
              e530cd2
              f63aca1
              088f47c
              95ba19f
              1a29663
              9c3cb32
              9b455f3
              ec00d9a
              4f89ae4
              f119824
              cba7c85
              d71a033
              3894ba1
              fcaa39f
              ef22180
              1a60690
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|  | @@ -96,6 +96,8 @@ mod https { | |||||
| /// sometimes this is done as a side-effect of other operations, but we need to ensure it | ||||||
| /// happens here. On non-unix platforms, ddcommon uses `ring` instead, which handles this | ||||||
| /// at rustls initialization. TODO: Move to the more ergonomic LazyLock when MSRV is 1.80 | ||||||
| /// In fips mode we expect someone to have done this already. | ||||||
| #[cfg(any(not(feature = "fips"), coverage))] | ||||||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 
        Suggested change
       
 Can't there be a default here? instead of doing  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how would we write that in a cfg line? we want this to be run in both coverage checks or for a non-fips build | ||||||
| fn ensure_crypto_provider_initialized() { | ||||||
| use std::sync::OnceLock; | ||||||
| static INIT_CRYPTO_PROVIDER: OnceLock<()> = OnceLock::new(); | ||||||
|  | @@ -108,6 +110,11 @@ mod https { | |||||
| }); | ||||||
| } | ||||||
|  | ||||||
| // This actually needs to be done by the user somewhere in their own main. This will only | ||||||
| // be active on Unix platforms | ||||||
| #[cfg(all(feature = "fips", not(coverage)))] | ||||||
| fn ensure_crypto_provider_initialized() {} | ||||||
|  | ||||||
| #[cfg(feature = "use_webpki_roots")] | ||||||
| pub(super) fn build_https_connector_with_webpki_roots() -> anyhow::Result< | ||||||
| hyper_rustls::HttpsConnector<hyper_util::client::legacy::connect::HttpConnector>, | ||||||
|  | ||||||
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.
I would like a comment here to explain what this is doing.
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.
done.