Make use of -[OFXMLElement setStringValue:].
This commit is contained in:
parent
df5e8f04b4
commit
5a2f8ac0f4
1 changed files with 8 additions and 11 deletions
|
@ -625,12 +625,10 @@
|
|||
namespace: XMPP_NS_SASL];
|
||||
if (response) {
|
||||
if ([response count] == 0)
|
||||
[responseTag addChild: [OFXMLElement
|
||||
elementWithCharacters: @"="]];
|
||||
[responseTag setStringValue: @"="];
|
||||
else
|
||||
[responseTag addChild: [OFXMLElement
|
||||
elementWithCharacters: [response
|
||||
stringByBase64Encoding]]];
|
||||
[responseTag setStringValue:
|
||||
[response stringByBase64Encoding]];
|
||||
}
|
||||
|
||||
[self sendStanza: responseTag];
|
||||
|
@ -795,11 +793,10 @@
|
|||
stringValue: authName];
|
||||
if (initialMessage) {
|
||||
if ([initialMessage count] == 0)
|
||||
[authTag addChild: [OFXMLElement
|
||||
elementWithCharacters: @"="]];
|
||||
[authTag setStringValue: @"="];
|
||||
else
|
||||
[authTag addChild: [OFXMLElement elementWithCharacters:
|
||||
[initialMessage stringByBase64Encoding]]];
|
||||
[authTag setStringValue:
|
||||
[initialMessage stringByBase64Encoding]];
|
||||
}
|
||||
|
||||
[self sendStanza: authTag];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue