mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
e7700ed4c2
commit
21bd77c921
1 changed files with 10 additions and 0 deletions
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue