mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Enable NSFileHandle TLS support under mingw
This commit is contained in:
parent
05542be4c7
commit
19c32ba0f5
2 changed files with 3 additions and 5 deletions
|
@ -330,9 +330,7 @@ debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
[[NSObject leakAt: &urlOrder] release];
|
||||
urlLock = [NSLock new];
|
||||
[[NSObject leakAt: &urlLock] release];
|
||||
#if !defined(_WIN32)
|
||||
sslClass = [NSFileHandle sslClass];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ static Class NSFileHandle_abstract_class = nil;
|
|||
static Class NSFileHandle_concrete_class = nil;
|
||||
static Class NSFileHandle_ssl_class = nil;
|
||||
|
||||
#if defined(HAVE_GNUTLS) && !defined(_WIN32)
|
||||
#if defined(HAVE_GNUTLS)
|
||||
@interface GSTLSHandle : GSFileHandle
|
||||
{
|
||||
@public
|
||||
|
@ -94,7 +94,7 @@ static Class NSFileHandle_ssl_class = nil;
|
|||
{
|
||||
NSFileHandle_abstract_class = self;
|
||||
NSFileHandle_concrete_class = [GSFileHandle class];
|
||||
#if defined(HAVE_GNUTLS) && !defined(_WIN32)
|
||||
#if defined(HAVE_GNUTLS)
|
||||
NSFileHandle_ssl_class = [GSTLSHandle class];
|
||||
#endif
|
||||
}
|
||||
|
@ -933,7 +933,7 @@ NSString * const NSFileHandleOperationException
|
|||
|
||||
@end
|
||||
|
||||
#if defined(HAVE_GNUTLS) && !defined(_WIN32)
|
||||
#if defined(HAVE_GNUTLS)
|
||||
|
||||
/* Callback to allow the TLS code to pull data from the remote system.
|
||||
* If the operation fails, this sets the error number.
|
||||
|
|
Loading…
Reference in a new issue