mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
a53f5dcad3
commit
e448a790ed
4 changed files with 20 additions and 12 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue