TLS tweak in last change

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39460 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-03-05 16:12:38 +00:00
parent 4f8626830e
commit 86e8a7b27d

View file

@ -2723,6 +2723,11 @@ setNonBlocking(SOCKET fd)
[outs setProperty: str forKey: key];
}
/* Set the streams to be 'open' in order to have the TLS
* handshake done. On completion the state will be reset.
*/
[ins _setStatus: NSStreamStatusOpen];
[outs _setStatus: NSStreamStatusOpen];
[GSTLSHandler tryInput: (GSSocketInputStream *)ins
output: (GSSocketOutputStream *)outs];
DESTROY(opts);