mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Add https support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25879 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d763e93ea3
commit
ffb78948a5
2 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSSocketStream.m: Try to honor protocol requested.
|
||||||
|
* Source/NSURLProtocol.m: Add https
|
||||||
|
|
||||||
2008-01-05 Nicola Pero <nicola.pero@meta-innovation.com>
|
2008-01-05 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
* Source/Additions/GSXML.m ([GSXPathContext
|
* Source/Additions/GSXML.m ([GSXPathContext
|
||||||
|
@ -5,10 +10,6 @@
|
||||||
namespaces in XPath expressions.
|
namespaces in XPath expressions.
|
||||||
* Headers/Additions/GNUstepBase/GSXML.h: Same.
|
* Headers/Additions/GNUstepBase/GSXML.h: Same.
|
||||||
|
|
||||||
2008-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
|
||||||
|
|
||||||
* Source/GSSocketStream.m: Try to honor protocol requested.
|
|
||||||
|
|
||||||
2008-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
2008-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* config/pathtls.m4: fixup form mingw32
|
* config/pathtls.m4: fixup form mingw32
|
||||||
|
|
|
@ -447,6 +447,13 @@ static NSURLProtocol *placeholder = nil;
|
||||||
RETAIN(this->input);
|
RETAIN(this->input);
|
||||||
RETAIN(this->output);
|
RETAIN(this->output);
|
||||||
[self _didInitializeOutputStream: this->output];
|
[self _didInitializeOutputStream: this->output];
|
||||||
|
if ([[url scheme] isEqualToString: @"https"] == YES)
|
||||||
|
{
|
||||||
|
[this->input setProperty: NSStreamSocketSecurityLevelNegotiatedSSL
|
||||||
|
forKey: NSStreamSocketSecurityLevelKey];
|
||||||
|
[this->output setProperty: NSStreamSocketSecurityLevelNegotiatedSSL
|
||||||
|
forKey: NSStreamSocketSecurityLevelKey];
|
||||||
|
}
|
||||||
[this->input setDelegate: self];
|
[this->input setDelegate: self];
|
||||||
[this->output setDelegate: self];
|
[this->output setDelegate: self];
|
||||||
[self _schedule];
|
[self _schedule];
|
||||||
|
@ -1124,6 +1131,13 @@ static NSURLProtocol *placeholder = nil;
|
||||||
}
|
}
|
||||||
RETAIN(this->input);
|
RETAIN(this->input);
|
||||||
RETAIN(this->output);
|
RETAIN(this->output);
|
||||||
|
if ([[url scheme] isEqualToString: @"https"] == YES)
|
||||||
|
{
|
||||||
|
[this->input setProperty: NSStreamSocketSecurityLevelNegotiatedSSL
|
||||||
|
forKey: NSStreamSocketSecurityLevelKey];
|
||||||
|
[this->output setProperty: NSStreamSocketSecurityLevelNegotiatedSSL
|
||||||
|
forKey: NSStreamSocketSecurityLevelKey];
|
||||||
|
}
|
||||||
[this->input setDelegate: self];
|
[this->input setDelegate: self];
|
||||||
[this->output setDelegate: self];
|
[this->output setDelegate: self];
|
||||||
[this->input scheduleInRunLoop: [NSRunLoop currentRunLoop]
|
[this->input scheduleInRunLoop: [NSRunLoop currentRunLoop]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue