Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1898725 Details for
Bug 2083581
capinfos aborts in FIPS
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch
hash.patch (text/plain), 1.90 KB, created by
Michal Ruprich
on 2022-07-22 12:23:23 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Michal Ruprich
Created:
2022-07-22 12:23:23 UTC
Size:
1.90 KB
patch
obsolete
>diff --git a/capinfos.c b/capinfos.c >index 5536766..df7b23e 100644 >--- a/capinfos.c >+++ b/capinfos.c >@@ -739,7 +739,9 @@ print_stats(const gchar *filename, capture_info *cf_info) > } > if (cap_file_hashes) { > printf ("SHA256: %s\n", file_sha256); >- printf ("RIPEMD160: %s\n", file_rmd160); >+ if(!gcry_fips_mode_active()) >+ printf ("RIPEMD160: %s\n", file_rmd160); >+ > printf ("SHA1: %s\n", file_sha1); > } > if (cap_order) printf ("Strict time order: %s\n", order_string(cf_info->order)); >@@ -851,7 +853,9 @@ print_stats_table_header(void) > if (cap_packet_rate) print_stats_table_header_label("Average packet rate (packets/sec)"); > if (cap_file_hashes) { > print_stats_table_header_label("SHA256"); >- print_stats_table_header_label("RIPEMD160"); >+ if(!gcry_fips_mode_active()) >+ print_stats_table_header_label("RIPEMD160"); >+ > print_stats_table_header_label("SHA1"); > } > if (cap_order) print_stats_table_header_label("Strict time order"); >@@ -1795,7 +1799,9 @@ main(int argc, char *argv[]) > gcry_check_version(NULL); > gcry_md_open(&hd, GCRY_MD_SHA256, 0); > if (hd) { >- gcry_md_enable(hd, GCRY_MD_RMD160); >+ if(!gcry_fips_mode_active()) >+ gcry_md_enable(hd, GCRY_MD_RMD160); >+ > gcry_md_enable(hd, GCRY_MD_SHA1); > } > hash_buf = (char *)g_malloc(HASH_BUF_SIZE); >@@ -1817,7 +1823,9 @@ main(int argc, char *argv[]) > } > gcry_md_final(hd); > hash_to_str(gcry_md_read(hd, GCRY_MD_SHA256), HASH_SIZE_SHA256, file_sha256); >- hash_to_str(gcry_md_read(hd, GCRY_MD_RMD160), HASH_SIZE_RMD160, file_rmd160); >+ if(!gcry_fips_mode_active()) >+ hash_to_str(gcry_md_read(hd, GCRY_MD_RMD160), HASH_SIZE_RMD160, file_rmd160); >+ > hash_to_str(gcry_md_read(hd, GCRY_MD_SHA1), HASH_SIZE_SHA1, file_sha1); > } > if (fh) fclose(fh);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2083581
:
1878294
| 1898725