Fix mistake in property key names for certificate support

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19926 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-08-26 10:41:04 +00:00
parent a53f5dcad3
commit e448a790ed
4 changed files with 20 additions and 12 deletions

View file

@ -653,12 +653,14 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
sock = [sslClass fileHandleAsClientInBackgroundAtAddress: host
service: port
protocol: s];
cert = [request objectForKey: GSHTTPSCertificateFileKey];
cert = [request objectForKey: GSHTTPPropertyCertificateFileKey];
if ([cert length] > 0)
{
NSString *key = [request objectForKey: GSHTTPSKeyFileKey];
NSString *pwd = [request objectForKey: GSHTTPSKeyPasswordKey];
NSString *key;
NSString *pwd;
key = [request objectForKey: GSHTTPPropertyKeyFileKey];
pwd = [request objectForKey: GSHTTPPropertyPasswordKey];
[sock sslSetCertificate: cert privateKey: key PEMpasswd: pwd];
}
}

View file

@ -73,14 +73,14 @@ NSString * const GSHTTPPropertyProxyHostKey
NSString * const GSHTTPPropertyProxyPortKey
= @"GSHTTPPropertyProxyPortKey";
NSString * const GSHTTPSCertificateFileKey
= @"GSHTTPSCertificateFileKey";
NSString * const GSHTTPPropertyCertificateFileKey
= @"GSHTTPPropertyCertificateFileKey";
NSString * const GSHTTPSKeyFileKey
= @"GSHTTPSKeyFileKey";
NSString * const GSHTTPPropertyKeyFileKey
= @"GSHTTPPropertyKeyFileKey";
NSString * const GSHTTPSKeyPasswordKey
= @"GSHTTPSKeyPasswordKey";
NSString * const GSHTTPPropertyPasswordKey
= @"GSHTTPPropertyPasswordKey";
/**