ObjXMPP  Diff

Differences From Artifact [09b7294848]:

To Artifact [e1c935f11f]:


1
2

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


+







/*
 * Copyright (c) 2012, Florian Zeitz <florob@babelmonkeys.de>
 * Copyright (c) 2019, Jonathan Schleifer <js@heap.zone>
 *
 * 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.
 *
40
41
42
43
44
45
46
47
48


49
50
51
52
53
54
41
42
43
44
45
46
47


48
49
50
51
52
53
54
55







-
-
+
+







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

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

	[message makeImmutable];

	return message;
}
@end