ObjXMPP  Check-in [9b61e47762]

Overview
Comment:Fix compilation with GCC
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9b61e47762bd680816ed46ebce5b61fd22de0e3fbbe86762f795e15ef7f703c2
User & Date: js on 2019-01-23 20:23:45
Other Links: manifest | tags
Context
2019-01-27
15:29
Fix connecting to servers with SRV records check-in: d5b95a3e8c user: js tags: trunk
2019-01-23
20:23
Fix compilation with GCC check-in: 9b61e47762 user: js tags: trunk
2019-01-20
12:45
Install an objfw-config package check-in: f9ba7ce6ec user: js tags: trunk
Changes

Modified src/XMPPConnection.m from [55a67721ce] to [505bfd84f6].

337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
{
	void *pool = objc_autoreleasePoolPush();

	if (_socket != nil)
		@throw [OFAlreadyConnectedException exception];

	_socket = [[OFTCPSocket alloc] init];
	[_socket setDelegate: self];

	if (_server != nil)
		[_socket asyncConnectToHost: _server
				       port: _port];
	else
		[[OFThread DNSResolver] asyncResolveHost: _domainToASCII
						delegate: self];







|







337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
{
	void *pool = objc_autoreleasePoolPush();

	if (_socket != nil)
		@throw [OFAlreadyConnectedException exception];

	_socket = [[OFTCPSocket alloc] init];
	[(OFTCPSocket *)_socket setDelegate: self];

	if (_server != nil)
		[_socket asyncConnectToHost: _server
				       port: _port];
	else
		[[OFThread DNSResolver] asyncResolveHost: _domainToASCII
						delegate: self];
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
		[newSock setCertificateFile: _certificateFile];
		[newSock setPrivateKeyFile: _privateKeyFile];
		[newSock setPrivateKeyPassphrase: _privateKeyPassphrase];
#endif
		[newSock startTLSWithExpectedHost: nil];
		[_socket release];
		_socket = newSock;
		[_socket setDelegate: self];

		_encrypted = true;

		[_delegates broadcastSelector: @selector(
						   connectionDidUpgradeToTLS:)
				   withObject: self];








|







759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
		[newSock setCertificateFile: _certificateFile];
		[newSock setPrivateKeyFile: _privateKeyFile];
		[newSock setPrivateKeyPassphrase: _privateKeyPassphrase];
#endif
		[newSock startTLSWithExpectedHost: nil];
		[_socket release];
		_socket = newSock;
		[(OFTCPSocket *)_socket setDelegate: self];

		_encrypted = true;

		[_delegates broadcastSelector: @selector(
						   connectionDidUpgradeToTLS:)
				   withObject: self];