mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:50:37 +00:00
secur32: Prevent gnutls from using system priority file.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
11d09da60f
commit
c654839178
|
@ -977,8 +977,19 @@ static void schan_gnutls_log(int level, const char *msg)
|
|||
|
||||
BOOL schan_imp_init(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);
|
||||
}
|
||||
|
||||
libgnutls_handle = dlopen(SONAME_LIBGNUTLS, RTLD_NOW);
|
||||
if (!libgnutls_handle)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue