add a few more file name checks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35762 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2012-10-29 14:05:01 +00:00
parent e7700ed4c2
commit 21bd77c921

View file

@ -174,6 +174,7 @@ static gnutls_anon_client_credentials_t anoncred;
str = [[NSUserDefaults standardUserDefaults] stringForKey: GSTLSCAFile];
if (nil != str)
{
str = [str stringByStandardizingPath];
ASSIGN(caFile, str);
}
@ -183,6 +184,7 @@ static gnutls_anon_client_credentials_t anoncred;
str = [[NSUserDefaults standardUserDefaults] stringForKey: GSTLSRevokeFile];
if (nil != str)
{
str = [str stringByStandardizingPath];
ASSIGN(revokeFile, str);
}
@ -239,6 +241,10 @@ static gnutls_anon_client_credentials_t anoncred;
ofType: @"crt"
inDirectory: @"GSTLS"];
}
else
{
str = [str stringByStandardizingPath];
}
ASSIGN(caFile, str);
/* Let the GS_TLS_REVOKE environment variable override the
@ -252,6 +258,10 @@ static gnutls_anon_client_credentials_t anoncred;
ofType: @"crl"
inDirectory: @"GSTLS"];
}
else
{
str = [str stringByStandardizingPath];
}
ASSIGN(revokeFile, str);
str = [[pi environment] objectForKey: @"GS_TLS_VERIFY_C"];