mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add warning if you try to use SSL without support compiled in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27091 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0682b9bcee
commit
4615b07d2f
1 changed files with 13 additions and 0 deletions
|
@ -573,6 +573,19 @@ static gnutls_anon_client_credentials_t anoncred;
|
|||
@implementation GSTLS
|
||||
+ (void) tryInput: (GSSocketInputStream*)i output: (GSSocketOutputStream*)o
|
||||
{
|
||||
NSString *tls;
|
||||
|
||||
tls = [i propertyForKey: NSStreamSocketSecurityLevelKey];
|
||||
if (tls == nil)
|
||||
{
|
||||
tls = [o propertyForKey: NSStreamSocketSecurityLevelKey];
|
||||
}
|
||||
if (tls != nil
|
||||
&& [tls isEqualToString: NSStreamSocketSecurityLevelNone] == NO)
|
||||
{
|
||||
NSLog(@"Attempt to use SSL/TLS without support.");
|
||||
NSLog(@"Please reconfigure gnustep-base with GNU TLS.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
- (id) initWithInput: (GSSocketInputStream*)i
|
||||
|
|
Loading…
Reference in a new issue