345
346
347
348
349
350
351
352
353
354
355
356
357
358
|
return encrypted;
}
- (BOOL)streamOpen
{
return streamOpen;
}
- (BOOL)checkCertificateAndGetReason: (OFString**)reason
{
X509Certificate *cert;
OFDictionary *SANs;
BOOL serviceSpecific = NO;
|
>
>
>
>
>
|
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
|
return encrypted;
}
- (BOOL)streamOpen
{
return streamOpen;
}
- (BOOL)rosterVersioningSupported
{
return rosterVersioningSupported;
}
- (BOOL)checkCertificateAndGetReason: (OFString**)reason
{
X509Certificate *cert;
OFDictionary *SANs;
BOOL serviceSpecific = NO;
|
840
841
842
843
844
845
846
847
848
849
850
851
852
853
|
namespace: XMPP_NS_STARTTLS]];
return;
}
if (encryptionRequired && !encrypted)
/* TODO: Find/create an exception to throw here */
@throw [OFException exceptionWithClass: isa];
if (mechs != nil) {
OFEnumerator *enumerator;
OFXMLElement *mech;
enumerator = [[mechs children] objectEnumerator];
while ((mech = [enumerator nextObject]) != nil)
|
>
>
>
>
|
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
|
namespace: XMPP_NS_STARTTLS]];
return;
}
if (encryptionRequired && !encrypted)
/* TODO: Find/create an exception to throw here */
@throw [OFException exceptionWithClass: isa];
if ([element elementForName: @"ver"
namespace: XMPP_NS_ROSTERVER] != nil)
rosterVersioningSupported = YES;
if (mechs != nil) {
OFEnumerator *enumerator;
OFXMLElement *mech;
enumerator = [[mechs children] objectEnumerator];
while ((mech = [enumerator nextObject]) != nil)
|