mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Remove the obsolete openssl bundle code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39937 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fda234553c
commit
5b360d8a83
18 changed files with 41 additions and 6892 deletions
|
@ -57,6 +57,20 @@ static Class NSFileHandle_abstract_class = nil;
|
|||
static Class NSFileHandle_concrete_class = nil;
|
||||
static Class NSFileHandle_ssl_class = nil;
|
||||
|
||||
#if defined(HAVE_GNUTLS) && !defined(_WIN32)
|
||||
@interface GSTLSHandle : GSFileHandle
|
||||
{
|
||||
@public
|
||||
NSDictionary *opts;
|
||||
GSTLSSession *session;
|
||||
}
|
||||
- (void) sslDisconnect;
|
||||
- (BOOL) sslHandshakeEstablished: (BOOL*)result outgoing: (BOOL)isOutgoing;
|
||||
- (NSString*) sslSetOptions: (NSDictionary*)options;
|
||||
@end
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* <code>NSFileHandle</code> is a class that provides a wrapper for accessing
|
||||
|
@ -78,6 +92,9 @@ static Class NSFileHandle_ssl_class = nil;
|
|||
{
|
||||
NSFileHandle_abstract_class = self;
|
||||
NSFileHandle_concrete_class = [GSFileHandle class];
|
||||
#if defined(HAVE_GNUTLS) && !defined(_WIN32)
|
||||
NSFileHandle_ssl_class = [GSTLSHandle class];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -726,26 +743,6 @@ NSString * const NSFileHandleOperationException
|
|||
*/
|
||||
+ (Class) sslClass
|
||||
{
|
||||
if (0 == NSFileHandle_ssl_class)
|
||||
{
|
||||
NSFileHandle_ssl_class = NSClassFromString(@"GSTLSHandle");
|
||||
|
||||
if (0 == NSFileHandle_ssl_class)
|
||||
{
|
||||
NSString *path;
|
||||
NSBundle *bundle;
|
||||
|
||||
path = [[NSBundle bundleForClass: [NSObject class]] bundlePath];
|
||||
path = [path stringByAppendingPathComponent: @"SSL.bundle"];
|
||||
|
||||
bundle = [NSBundle bundleWithPath: path];
|
||||
NSFileHandle_ssl_class = [bundle principalClass];
|
||||
if (NSFileHandle_ssl_class == 0 && bundle != nil)
|
||||
{
|
||||
NSLog(@"Failed to load principal class from bundle (%@)", path);
|
||||
}
|
||||
}
|
||||
}
|
||||
return NSFileHandle_ssl_class;
|
||||
}
|
||||
|
||||
|
@ -885,21 +882,7 @@ NSString * const NSFileHandleOperationException
|
|||
|
||||
@end
|
||||
|
||||
#if defined(HAVE_GNUTLS)
|
||||
|
||||
#if !defined(_WIN32)
|
||||
|
||||
@interface GSTLSHandle : GSFileHandle
|
||||
{
|
||||
@public
|
||||
NSDictionary *opts;
|
||||
GSTLSSession *session;
|
||||
}
|
||||
- (void) sslDisconnect;
|
||||
- (BOOL) sslHandshakeEstablished: (BOOL*)result outgoing: (BOOL)isOutgoing;
|
||||
- (NSString*) sslSetOptions: (NSDictionary*)options;
|
||||
@end
|
||||
|
||||
#if defined(HAVE_GNUTLS) && !defined(_WIN32)
|
||||
|
||||
/* Callback to allow the TLS code to pull data from the remote system.
|
||||
* If the operation fails, this sets the error number.
|
||||
|
@ -1082,7 +1065,6 @@ GSTLSHandlePush(gnutls_transport_ptr_t handle, const void *buffer, size_t len)
|
|||
}
|
||||
|
||||
@end
|
||||
#endif /* _WIN32 */
|
||||
|
||||
#endif /* HAVE_GNUTLS */
|
||||
#endif /* defined(HAVE_GNUTLS) && !defined(_WIN32) */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue