ssh handshake improvements and consmetic tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33535 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-07-12 11:40:15 +00:00
parent 853f52049b
commit 6264555674
6 changed files with 198 additions and 211 deletions

View file

@ -728,7 +728,7 @@ NSString * const NSFileHandleOperationException
/** <override-dummy />
* Establishes an SSL connection from the system that the handle
* is talking to.<br />
* This is implented by an SSL handling subclass.<br />
* This is implemented by an SSL handling subclass.<br />
* The default implementation just returns NO.
*/
- (BOOL) sslAccept
@ -739,7 +739,7 @@ NSString * const NSFileHandleOperationException
/** <override-dummy />
* Establishes an SSL connection to the system that the handle
* is talking to.<br />
* This is implented by an SSL handling subclass.<br />
* This is implemented by an SSL handling subclass.<br />
* The default implementation just returns NO.
*/
- (BOOL) sslConnect
@ -755,7 +755,14 @@ NSString * const NSFileHandleOperationException
}
/** <override-dummy />
* Sets the certificate to be used to identify this process to the server
*/
- (BOOL) sslHandshakeEstablished: (BOOL*)result outgoing: (BOOL)isOutgoing;
{
return NO;
}
/** <override-dummy />
* Sets the certificate chain to be used to identify this process to the server
* at the opposite end of the network connection.
*/
- (void) sslSetCertificate: (NSString*)certFile
@ -763,5 +770,6 @@ NSString * const NSFileHandleOperationException
PEMpasswd: (NSString*)PEMpasswd
{
}
@end

View file

@ -757,7 +757,7 @@ if (aValue >= -1 && aValue <= 12)\
return [self stringValue];
}
/* Return nil for an NSNumber that is allocated and initalized without
/* Return nil for an NSNumber that is allocated and initialized without
* providing a real value. Yes, this seems weird, but it is actually what
* happens on OS X.
*/

View file

@ -331,7 +331,7 @@ GSCurrentThread(void)
{
assert(GSRegisterCurrentThread() && @"Failed to register thread");
thr = pthread_getspecific(thread_object_key);
if ((defaultThread == nil) && IS_MAIN_PTHREAD)
if ((nil == defaultThread) && IS_MAIN_PTHREAD)
{
defaultThread = [thr retain];
}