Use an OFSet for mechanisms.

This commit is contained in:
Jonathan Schleifer 2011-09-10 18:17:35 +02:00
parent 62d2bd2ba5
commit 1f0ba6b533
2 changed files with 6 additions and 4 deletions

View file

@ -702,7 +702,7 @@
namespace: XMPP_NS_SESSION]; namespace: XMPP_NS_SESSION];
OFXMLElement *mechs = [element elementForName: @"mechanisms" OFXMLElement *mechs = [element elementForName: @"mechanisms"
namespace: XMPP_NS_SASL]; namespace: XMPP_NS_SASL];
OFMutableArray *mechanisms = [OFMutableArray array]; OFMutableSet *mechanisms = [OFMutableSet set];
if (starttls != nil) { if (starttls != nil) {
[self sendStanza: [self sendStanza:

View file

@ -151,10 +151,12 @@
GS2Header = nil; GS2Header = nil;
if (authzid) if (authzid)
GS2Header = [[OFString alloc] initWithFormat: @"%@,a=%@,", GS2Header = [[OFString alloc]
(plusAvailable ? @"p=tls-unique" : @"y"), authzid]; initWithFormat: @"%@,a=%@,",
(plusAvailable ? @"p=tls-unique" : @"y"),
authzid];
else else
GS2Header = plusAvailable ? @"p=tls-unique,," : @"y,,"; GS2Header = (plusAvailable ? @"p=tls-unique,," : @"y,,");
[cNonce release]; [cNonce release];
cNonce = nil; cNonce = nil;