ObjXMPP  Diff

Differences From Artifact [4ce23edb9d]:

To Artifact [aab4070d6d]:


1
2

3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
10


+







/*
 * Copyright (c) 2011, Florian Zeitz <florob@babelmonkeys.de>
 * Copyright (c) 2019, Jonathan Schleifer <js@webkeks.org>
 *
 * https://heap.zone/objxmpp/
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice is present in all copies.
 *
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
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







-
-
+
+





-
-
+
+





-
-
+
+







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

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

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

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

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

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

	[message makeImmutable];

	return message;
}
@end