Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:obsgeek0:repos:ALP
gpg2
gnupg-detect_FIPS_mode.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnupg-detect_FIPS_mode.patch of Package gpg2
Index: gnupg-2.3.8/g10/mainproc.c =================================================================== --- gnupg-2.3.8.orig/g10/mainproc.c +++ gnupg-2.3.8/g10/mainproc.c @@ -1011,7 +1011,12 @@ proc_plaintext( CTX c, PACKET *pkt ) according to 2440, so hopefully it won't come up that often. There is no good way to specify what algorithms to use in that case, so these there are the historical answer. */ - gcry_md_enable (c->mfx.md, DIGEST_ALGO_RMD160); + + /* Libgcrypt manual says that gcry_version_check must be called + * before calling gcry_fips_mode_active. */ + gcry_check_version (NULL); + if(!gcry_fips_mode_active()) + gcry_md_enable(c->mfx.md, DIGEST_ALGO_RMD160); gcry_md_enable (c->mfx.md, DIGEST_ALGO_SHA1); } if (DBG_HASHING)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor