Use an OFSet for mechanisms.
This commit is contained in:
parent
62d2bd2ba5
commit
1f0ba6b533
2 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue