mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
New SSL bundle tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11640 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
135fac0c74
commit
b21d3845de
3 changed files with 20 additions and 13 deletions
|
@ -50,17 +50,6 @@ static Class NSFileHandle_ssl_class = nil;
|
|||
NSFileHandle_concrete_class = [WindowsFileHandle class];
|
||||
#else
|
||||
NSFileHandle_concrete_class = [UnixFileHandle class];
|
||||
{
|
||||
NSBundle *bundle;
|
||||
NSString *path;
|
||||
|
||||
path = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSSystemDomainMask, NO) lastObject];
|
||||
path = [path stringByAppendingPathComponent: @"Bundles"];
|
||||
path = [path stringByAppendingPathComponent: @"SSL.bundle"];
|
||||
bundle = [NSBundle bundleWithPath: path];
|
||||
NSFileHandle_ssl_class = [bundle principalClass];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -354,6 +343,18 @@ NSString* NSFileHandleOperationException =
|
|||
|
||||
+ (Class) sslClass
|
||||
{
|
||||
if (NSFileHandle_ssl_class == 0)
|
||||
{
|
||||
NSBundle *bundle;
|
||||
NSString *path;
|
||||
|
||||
path = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSSystemDomainMask, NO) lastObject];
|
||||
path = [path stringByAppendingPathComponent: @"Bundles"];
|
||||
path = [path stringByAppendingPathComponent: @"SSL.bundle"];
|
||||
bundle = [NSBundle bundleWithPath: path];
|
||||
NSFileHandle_ssl_class = [bundle principalClass];
|
||||
}
|
||||
return NSFileHandle_ssl_class;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue