update for new TLS api

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35761 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2012-10-29 13:41:27 +00:00
parent f6feeccb49
commit e7700ed4c2

View file

@ -63,6 +63,7 @@
#import "Foundation/NSDictionary.h"
#import "Foundation/NSEnumerator.h"
#import "Foundation/NSException.h"
#import "Foundation/NSFileHandle.h"
#import "Foundation/NSFileManager.h"
#import "Foundation/NSRunLoop.h"
#import "Foundation/NSString.h"
@ -5170,10 +5171,9 @@ static void indentation(unsigned level, NSMutableString *str)
handle = RETAIN([u URLHandleUsingCache: NO]);
if (cert != nil && pKey != nil && pwd != nil)
{
[handle writeProperty: cert
forKey: GSHTTPPropertyCertificateFileKey];
[handle writeProperty: pKey forKey: GSHTTPPropertyKeyFileKey];
[handle writeProperty: pwd forKey: GSHTTPPropertyPasswordKey];
[handle writeProperty: cert forKey: GSTLSCertificateFile];
[handle writeProperty: pKey forKey: GSTLSCertificateKeyFile];
[handle writeProperty: pwd forKey: GSTLSCertificateKeyPassword];
}
#else
connectionURL = [url copy];