Adjust to ObjFW changes & small fixes

This commit is contained in:
Jonathan Schleifer 2017-07-23 13:19:48 +02:00
parent 5fa8b0b9b3
commit cb5f6bfe40
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
12 changed files with 98 additions and 91 deletions

View file

@ -40,13 +40,16 @@
password: nil] 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]];
[message makeImmutable];
return message;
}