Adjust to recent ObjFW changes.
This commit is contained in:
parent
74727c159c
commit
df5e8f04b4
8 changed files with 139 additions and 133 deletions
|
@ -98,7 +98,8 @@
|
||||||
|
|
||||||
if ((rc = stringprep_profile([username_ UTF8String], &node,
|
if ((rc = stringprep_profile([username_ UTF8String], &node,
|
||||||
"SASLprep", 0)) != STRINGPREP_OK)
|
"SASLprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException newWithClass: isa
|
@throw [XMPPStringPrepFailedException
|
||||||
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
profile: @"SASLprep"
|
profile: @"SASLprep"
|
||||||
string: username_];
|
string: username_];
|
||||||
|
@ -126,7 +127,7 @@
|
||||||
if ((rc = stringprep_profile([resource_ UTF8String], &res,
|
if ((rc = stringprep_profile([resource_ UTF8String], &res,
|
||||||
"Resourceprep", 0)) != STRINGPREP_OK)
|
"Resourceprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException
|
@throw [XMPPStringPrepFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
profile: @"Resourceprep"
|
profile: @"Resourceprep"
|
||||||
string: resource_];
|
string: resource_];
|
||||||
|
@ -154,7 +155,7 @@
|
||||||
if ((rc = idna_to_ascii_8z([server_ UTF8String],
|
if ((rc = idna_to_ascii_8z([server_ UTF8String],
|
||||||
&srv, IDNA_USE_STD3_ASCII_RULES)) != IDNA_SUCCESS)
|
&srv, IDNA_USE_STD3_ASCII_RULES)) != IDNA_SUCCESS)
|
||||||
@throw [XMPPIDNATranslationFailedException
|
@throw [XMPPIDNATranslationFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
operation: @"ToASCII"
|
operation: @"ToASCII"
|
||||||
string: server_];
|
string: server_];
|
||||||
|
@ -181,7 +182,8 @@
|
||||||
|
|
||||||
if ((rc = stringprep_profile([domain_ UTF8String], &srv,
|
if ((rc = stringprep_profile([domain_ UTF8String], &srv,
|
||||||
"Nameprep", 0)) != STRINGPREP_OK)
|
"Nameprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException newWithClass: isa
|
@throw [XMPPStringPrepFailedException
|
||||||
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
profile: @"Nameprep"
|
profile: @"Nameprep"
|
||||||
string: domain_];
|
string: domain_];
|
||||||
|
@ -208,7 +210,8 @@
|
||||||
|
|
||||||
if ((rc = stringprep_profile([password_ UTF8String], &pass,
|
if ((rc = stringprep_profile([password_ UTF8String], &pass,
|
||||||
"SASLprep", 0)) != STRINGPREP_OK)
|
"SASLprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException newWithClass: isa
|
@throw [XMPPStringPrepFailedException
|
||||||
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
profile: @"SASLprep"
|
profile: @"SASLprep"
|
||||||
string: password_];
|
string: password_];
|
||||||
|
@ -244,7 +247,7 @@
|
||||||
if ((rc = idna_to_ascii_8z([domain UTF8String], &cDomainToASCII,
|
if ((rc = idna_to_ascii_8z([domain UTF8String], &cDomainToASCII,
|
||||||
IDNA_USE_STD3_ASCII_RULES)) != IDNA_SUCCESS)
|
IDNA_USE_STD3_ASCII_RULES)) != IDNA_SUCCESS)
|
||||||
@throw [XMPPIDNATranslationFailedException
|
@throw [XMPPIDNATranslationFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
operation: @"ToASCII"
|
operation: @"ToASCII"
|
||||||
string: domain];
|
string: domain];
|
||||||
|
@ -260,7 +263,6 @@
|
||||||
SRVLookup = [XMPPSRVLookup
|
SRVLookup = [XMPPSRVLookup
|
||||||
lookupWithDomain: domainToASCII];
|
lookupWithDomain: domainToASCII];
|
||||||
} @catch (id e) {
|
} @catch (id e) {
|
||||||
[e release];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enumerator = [SRVLookup objectEnumerator];
|
enumerator = [SRVLookup objectEnumerator];
|
||||||
|
@ -274,9 +276,7 @@
|
||||||
break;
|
break;
|
||||||
} @catch (OFAddressTranslationFailedException
|
} @catch (OFAddressTranslationFailedException
|
||||||
*e) {
|
*e) {
|
||||||
[e release];
|
|
||||||
} @catch (OFConnectionFailedException *e) {
|
} @catch (OFConnectionFailedException *e) {
|
||||||
[e release];
|
|
||||||
}
|
}
|
||||||
} while ((candidate = [enumerator nextObject]) != nil);
|
} while ((candidate = [enumerator nextObject]) != nil);
|
||||||
} else
|
} else
|
||||||
|
@ -569,7 +569,7 @@
|
||||||
elementForName: @"text"
|
elementForName: @"text"
|
||||||
namespace: XMPP_NS_XMPP_STREAM] stringValue];
|
namespace: XMPP_NS_XMPP_STREAM] stringValue];
|
||||||
|
|
||||||
@throw [XMPPStreamErrorException newWithClass: isa
|
@throw [XMPPStreamErrorException exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
condition: condition
|
condition: condition
|
||||||
reason: reason];
|
reason: reason];
|
||||||
|
@ -607,7 +607,7 @@
|
||||||
|
|
||||||
if ([[element name] isEqual: @"failure"])
|
if ([[element name] isEqual: @"failure"])
|
||||||
/* TODO: Find/create an exception to throw here */
|
/* TODO: Find/create an exception to throw here */
|
||||||
@throw [OFException newWithClass: isa];
|
@throw [OFException exceptionWithClass: isa];
|
||||||
|
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
|
@ -655,7 +655,7 @@
|
||||||
of_log(@"Auth failed!");
|
of_log(@"Auth failed!");
|
||||||
// FIXME: Do more parsing/handling
|
// FIXME: Do more parsing/handling
|
||||||
@throw [XMPPAuthFailedException
|
@throw [XMPPAuthFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: self
|
connection: self
|
||||||
reason: [element XMLString]];
|
reason: [element XMLString]];
|
||||||
}
|
}
|
||||||
|
@ -730,7 +730,7 @@
|
||||||
|
|
||||||
if (encryptionRequired && !encrypted)
|
if (encryptionRequired && !encrypted)
|
||||||
/* TODO: Find/create an exception to throw here */
|
/* TODO: Find/create an exception to throw here */
|
||||||
@throw [OFException newWithClass: isa];
|
@throw [OFException exceptionWithClass: isa];
|
||||||
|
|
||||||
if (mechs != nil) {
|
if (mechs != nil) {
|
||||||
OFEnumerator *enumerator;
|
OFEnumerator *enumerator;
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
@property (readonly, nonatomic) XMPPConnection *connection;
|
@property (readonly, nonatomic) XMPPConnection *connection;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn;
|
connection: (XMPPConnection*)conn;
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn;
|
connection: (XMPPConnection*)conn;
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
@property (readonly, nonatomic) OFString *reason;
|
@property (readonly, nonatomic) OFString *reason;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
condition: (OFString*)condition_
|
condition: (OFString*)condition_
|
||||||
reason: (OFString*)reason_;
|
reason: (OFString*)reason_;
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
@property (readonly, nonatomic) OFString *profile, *string;
|
@property (readonly, nonatomic) OFString *profile, *string;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
profile: (OFString*)profile
|
profile: (OFString*)profile
|
||||||
string: (OFString*)string;
|
string: (OFString*)string;
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
@property (readonly, nonatomic) OFString *operation, *string;
|
@property (readonly, nonatomic) OFString *operation, *string;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
operation: (OFString*)operation
|
operation: (OFString*)operation
|
||||||
string: (OFString*)string;
|
string: (OFString*)string;
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
@property (readonly, nonatomic) OFString *reason;
|
@property (readonly, nonatomic) OFString *reason;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
reason: (OFString*)reason_;
|
reason: (OFString*)reason_;
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
|
|
|
@ -27,18 +27,18 @@
|
||||||
#import "XMPPExceptions.h"
|
#import "XMPPExceptions.h"
|
||||||
|
|
||||||
@implementation XMPPException
|
@implementation XMPPException
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
{
|
{
|
||||||
return [[self alloc] initWithClass: class_
|
return [[[self alloc] initWithClass: class_
|
||||||
connection: conn];
|
connection: conn] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
{
|
{
|
||||||
Class c = isa;
|
Class c = isa;
|
||||||
[self release];
|
[self release];
|
||||||
@throw [OFNotImplementedException newWithClass: c
|
@throw [OFNotImplementedException exceptionWithClass: c
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,15 +82,15 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation XMPPStreamErrorException
|
@implementation XMPPStreamErrorException
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
condition: (OFString*)condition_
|
condition: (OFString*)condition_
|
||||||
reason: (OFString*)reason_;
|
reason: (OFString*)reason_;
|
||||||
{
|
{
|
||||||
return [[self alloc] initWithClass: class_
|
return [[[self alloc] initWithClass: class_
|
||||||
connection: conn
|
connection: conn
|
||||||
condition: condition_
|
condition: condition_
|
||||||
reason: reason_];
|
reason: reason_] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
{
|
{
|
||||||
Class c = isa;
|
Class c = isa;
|
||||||
[self release];
|
[self release];
|
||||||
@throw [OFNotImplementedException newWithClass: c
|
@throw [OFNotImplementedException exceptionWithClass: c
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,15 +152,15 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation XMPPStringPrepFailedException
|
@implementation XMPPStringPrepFailedException
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
profile: (OFString*)profile
|
profile: (OFString*)profile
|
||||||
string: (OFString*)string
|
string: (OFString*)string
|
||||||
{
|
{
|
||||||
return [[self alloc] initWithClass: class_
|
return [[[self alloc] initWithClass: class_
|
||||||
connection: conn
|
connection: conn
|
||||||
profile: profile
|
profile: profile
|
||||||
string: string];
|
string: string] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
{
|
{
|
||||||
Class c = isa;
|
Class c = isa;
|
||||||
[self release];
|
[self release];
|
||||||
@throw [OFNotImplementedException newWithClass: c
|
@throw [OFNotImplementedException exceptionWithClass: c
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,15 +223,15 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation XMPPIDNATranslationFailedException
|
@implementation XMPPIDNATranslationFailedException
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
operation: (OFString*)operation
|
operation: (OFString*)operation
|
||||||
string: (OFString*)string
|
string: (OFString*)string
|
||||||
{
|
{
|
||||||
return [[self alloc] initWithClass: class_
|
return [[[self alloc] initWithClass: class_
|
||||||
connection: conn
|
connection: conn
|
||||||
operation: operation
|
operation: operation
|
||||||
string: string];
|
string: string] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
|
@ -239,7 +239,7 @@
|
||||||
{
|
{
|
||||||
Class c = isa;
|
Class c = isa;
|
||||||
[self release];
|
[self release];
|
||||||
@throw [OFNotImplementedException newWithClass: c
|
@throw [OFNotImplementedException exceptionWithClass: c
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,13 +293,13 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation XMPPAuthFailedException
|
@implementation XMPPAuthFailedException
|
||||||
+ newWithClass: (Class)class_
|
+ exceptionWithClass: (Class)class_
|
||||||
connection: (XMPPConnection*)conn
|
connection: (XMPPConnection*)conn
|
||||||
reason: (OFString*)reason_;
|
reason: (OFString*)reason_;
|
||||||
{
|
{
|
||||||
return [[self alloc] initWithClass: class_
|
return [[[self alloc] initWithClass: class_
|
||||||
connection: conn
|
connection: conn
|
||||||
reason: reason_];
|
reason: reason_] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithClass: (Class)class_
|
- initWithClass: (Class)class_
|
||||||
|
@ -307,7 +307,7 @@
|
||||||
{
|
{
|
||||||
Class c = isa;
|
Class c = isa;
|
||||||
[self release];
|
[self release];
|
||||||
@throw [OFNotImplementedException newWithClass: c
|
@throw [OFNotImplementedException exceptionWithClass: c
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
@try {
|
@try {
|
||||||
if (![type_ isEqual: @"get"] && ![type_ isEqual: @"set"] &&
|
if (![type_ isEqual: @"get"] && ![type_ isEqual: @"set"] &&
|
||||||
![type_ isEqual: @"result"] && ![type_ isEqual: @"error"])
|
![type_ isEqual: @"result"] && ![type_ isEqual: @"error"])
|
||||||
@throw [OFInvalidArgumentException newWithClass: isa
|
@throw [OFInvalidArgumentException
|
||||||
|
exceptionWithClass: isa
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
} @catch (id e) {
|
} @catch (id e) {
|
||||||
[self release];
|
[self release];
|
||||||
|
|
|
@ -112,7 +112,8 @@
|
||||||
|
|
||||||
if ((rc = stringprep_profile([node_ UTF8String], &nodepart,
|
if ((rc = stringprep_profile([node_ UTF8String], &nodepart,
|
||||||
"Nodeprep", 0)) != STRINGPREP_OK)
|
"Nodeprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException newWithClass: isa
|
@throw [XMPPStringPrepFailedException
|
||||||
|
exceptionWithClass: isa
|
||||||
connection: nil
|
connection: nil
|
||||||
profile: @"Nodeprep"
|
profile: @"Nodeprep"
|
||||||
string: node_];
|
string: node_];
|
||||||
|
@ -139,7 +140,8 @@
|
||||||
|
|
||||||
if ((rc = stringprep_profile([domain_ UTF8String], &srv,
|
if ((rc = stringprep_profile([domain_ UTF8String], &srv,
|
||||||
"Nameprep", 0)) != STRINGPREP_OK)
|
"Nameprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException newWithClass: isa
|
@throw [XMPPStringPrepFailedException
|
||||||
|
exceptionWithClass: isa
|
||||||
connection: nil
|
connection: nil
|
||||||
profile: @"Nameprep"
|
profile: @"Nameprep"
|
||||||
string: domain_];
|
string: domain_];
|
||||||
|
@ -173,7 +175,7 @@
|
||||||
if ((rc = stringprep_profile([resource_ UTF8String], &res,
|
if ((rc = stringprep_profile([resource_ UTF8String], &res,
|
||||||
"Resourceprep", 0)) != STRINGPREP_OK)
|
"Resourceprep", 0)) != STRINGPREP_OK)
|
||||||
@throw [XMPPStringPrepFailedException
|
@throw [XMPPStringPrepFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: nil
|
connection: nil
|
||||||
profile: @"Resourceprep"
|
profile: @"Resourceprep"
|
||||||
string: resource_];
|
string: resource_];
|
||||||
|
|
|
@ -231,9 +231,10 @@
|
||||||
if ([comp hasPrefix: @"r="]) {
|
if ([comp hasPrefix: @"r="]) {
|
||||||
if (![entry hasPrefix: cNonce])
|
if (![entry hasPrefix: cNonce])
|
||||||
@throw [XMPPAuthFailedException
|
@throw [XMPPAuthFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: nil
|
connection: nil
|
||||||
reason: @"Received wrong nonce"];
|
reason: @"Received wrong "
|
||||||
|
@"nonce"];
|
||||||
|
|
||||||
sNonce = entry;
|
sNonce = entry;
|
||||||
got |= GOT_SNONCE;
|
got |= GOT_SNONCE;
|
||||||
|
@ -248,7 +249,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (got != (GOT_SNONCE | GOT_SALT | GOT_ITERCOUNT))
|
if (got != (GOT_SNONCE | GOT_SALT | GOT_ITERCOUNT))
|
||||||
@throw [OFInvalidServerReplyException newWithClass: isa];
|
@throw [OFInvalidServerReplyException exceptionWithClass: isa];
|
||||||
|
|
||||||
// Add c=<base64(GS2Header+channelBindingData)>
|
// Add c=<base64(GS2Header+channelBindingData)>
|
||||||
tmpArray = [OFDataArray dataArrayWithItemSize: 1];
|
tmpArray = [OFDataArray dataArrayWithItemSize: 1];
|
||||||
|
@ -389,12 +390,13 @@
|
||||||
if ([mess hasPrefix: @"v="]) {
|
if ([mess hasPrefix: @"v="]) {
|
||||||
if (![value isEqual: [serverSignature stringByBase64Encoding]])
|
if (![value isEqual: [serverSignature stringByBase64Encoding]])
|
||||||
@throw [XMPPAuthFailedException
|
@throw [XMPPAuthFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
connection: nil
|
connection: nil
|
||||||
reason: @"Received wrong ServerSignature"];
|
reason: @"Received wrong "
|
||||||
|
@"ServerSignature"];
|
||||||
authenticated = YES;
|
authenticated = YES;
|
||||||
} else
|
} else
|
||||||
@throw [XMPPAuthFailedException newWithClass: isa
|
@throw [XMPPAuthFailedException exceptionWithClass: isa
|
||||||
connection: nil
|
connection: nil
|
||||||
reason: value];
|
reason: value];
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
{
|
{
|
||||||
Class c = isa;
|
Class c = isa;
|
||||||
[self release];
|
[self release];
|
||||||
@throw [OFNotImplementedException newWithClass: c
|
@throw [OFNotImplementedException exceptionWithClass: c
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
if (dn_expand(ns_msg_base(handle), ns_msg_end(handle),
|
if (dn_expand(ns_msg_base(handle), ns_msg_end(handle),
|
||||||
(uint8_t*)&rdata[3], buffer, NS_MAXDNAME) < 1)
|
(uint8_t*)&rdata[3], buffer, NS_MAXDNAME) < 1)
|
||||||
@throw [OFInitializationFailedException
|
@throw [OFInitializationFailedException
|
||||||
newWithClass: isa];
|
exceptionWithClass: isa];
|
||||||
|
|
||||||
target = [[OFString alloc]
|
target = [[OFString alloc]
|
||||||
initWithCString: buffer
|
initWithCString: buffer
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
|
|
||||||
if (res_ninit(&resState))
|
if (res_ninit(&resState))
|
||||||
@throw [OFAddressTranslationFailedException
|
@throw [OFAddressTranslationFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
socket: nil
|
socket: nil
|
||||||
host: domain];
|
host: domain];
|
||||||
|
|
||||||
|
@ -225,14 +225,14 @@
|
||||||
|
|
||||||
if (answerLen < 1 || answerLen > of_pagesize) {
|
if (answerLen < 1 || answerLen > of_pagesize) {
|
||||||
@throw [OFAddressTranslationFailedException
|
@throw [OFAddressTranslationFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
socket: nil
|
socket: nil
|
||||||
host: domain];
|
host: domain];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ns_initparse(answer, answerLen, &handle))
|
if (ns_initparse(answer, answerLen, &handle))
|
||||||
@throw [OFAddressTranslationFailedException
|
@throw [OFAddressTranslationFailedException
|
||||||
newWithClass: isa
|
exceptionWithClass: isa
|
||||||
socket: nil
|
socket: nil
|
||||||
host: domain];
|
host: domain];
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,8 @@
|
||||||
@try {
|
@try {
|
||||||
if (![name_ isEqual: @"iq"] && ![name_ isEqual: @"message"] &&
|
if (![name_ isEqual: @"iq"] && ![name_ isEqual: @"message"] &&
|
||||||
![name_ isEqual: @"presence"])
|
![name_ isEqual: @"presence"])
|
||||||
@throw [OFInvalidArgumentException newWithClass: isa
|
@throw [OFInvalidArgumentException
|
||||||
|
exceptionWithClass: isa
|
||||||
selector: _cmd];
|
selector: _cmd];
|
||||||
|
|
||||||
[self setDefaultNamespace: XMPP_NS_CLIENT];
|
[self setDefaultNamespace: XMPP_NS_CLIENT];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue