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:
rfm 2008-11-18 23:18:08 +00:00
parent 0682b9bcee
commit 4615b07d2f

View file

@ -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