Introduce --enable-gnutls-relax-mode, apply it in cupsHashData()#5622
Introduce --enable-gnutls-relax-mode, apply it in cupsHashData()#5622zdohnal wants to merge 2 commits into
Conversation
|
@zdohnal Is the GNUTLS_FIPS140_SET_LAX_MODE call not an actual function? I would prefer to just auto-detect it at configure time and call it if it is defined. The more knobs we get the less likely it is that it will work... :/ |
|
It is actually macro for: if (gnutls_fips140_mode_enabled()) See https://gnutls.org/manual/html_node/FIPS140_002d2-mode.html Ok, I'll see what I can do in cups-ssl.m4 about it. |
|
@zdohnal Based on the documentation for that function, we can safely do a configure check for gnutls_fips140_set_mode and then do: This will save and restore the mode around the hashing calls, and hopefully not step on any other users of this API (since we'd restore the previous setting, not just put it back to strict...) |
#5601