mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 03:24:09 +00:00
bcrypt: Prevent gnutls from using system priority file.
Fedora 33 disabled protocols below TLS 1.2 through crypto policy. Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7bc0cbc078
commit
f15328b145
|
@ -222,8 +222,19 @@ static void gnutls_log( int level, const char *msg )
|
|||
|
||||
static BOOL gnutls_initialize(void)
|
||||
{
|
||||
const char *env_str;
|
||||
int ret;
|
||||
|
||||
if ((env_str = getenv("GNUTLS_SYSTEM_PRIORITY_FILE")))
|
||||
{
|
||||
WARN("GNUTLS_SYSTEM_PRIORITY_FILE is %s.\n", debugstr_a(env_str));
|
||||
}
|
||||
else
|
||||
{
|
||||
WARN("Setting GNUTLS_SYSTEM_PRIORITY_FILE to \"/dev/null\".\n");
|
||||
setenv("GNUTLS_SYSTEM_PRIORITY_FILE", "/dev/null", 0);
|
||||
}
|
||||
|
||||
if (!(libgnutls_handle = dlopen( SONAME_LIBGNUTLS, RTLD_NOW )))
|
||||
{
|
||||
ERR_(winediag)( "failed to load libgnutls, no support for encryption\n" );
|
||||
|
|
Loading…
Reference in a new issue