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];
OFXMLElement *mechs = [element elementForName: @"mechanisms"
namespace: XMPP_NS_SASL];
OFMutableArray *mechanisms = [OFMutableArray array];
OFMutableSet *mechanisms = [OFMutableSet set];
if (starttls != nil) {
[self sendStanza:

View file

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