ObjXMPP  Diff

Differences From Artifact [9f0783c62c]:

To Artifact [8868878d5b]:


40
41
42
43
44
45
46
47

48
49

50
51
52
53



54
55
56
57
58
59
60
61
62
63
64
65
66
67


68
69
70
71
40
41
42
43
44
45
46

47
48

49
50
51


52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74







-
+

-
+


-
-
+
+
+














+
+




			    password: (OFString *)password
{
	return [[[self alloc] initWithAuthzid: authzid
				      authcid: authcid
				     password: password] autorelease];
}

- (OFDataArray *)initialMessage
- (OFData *)initialMessage
{
	OFDataArray *message = [OFDataArray dataArray];
	OFMutableData *message = [OFMutableData data];

	/* authzid */
	if (_authzid)
		[message addItem: _authzid];
	if (_authzid != nil)
		[message addItems: [_authzid UTF8String]
			    count: [_authzid UTF8StringLength]];

	/* separator */
	[message addItem: ""];

	/* authcid */
	[message addItems: [_authcid UTF8String]
		    count: [_authcid UTF8StringLength]];

	/* separator */
	[message addItem: ""];

	/* passwd */
	[message addItems: [_password UTF8String]
		    count: [_password UTF8StringLength]];

	[message makeImmutable];

	return message;
}
@end