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

@ -98,7 +98,7 @@
OFString *feature;
OFMutableString *caps = [OFMutableString string];
OFSHA1Hash *hash = [OFSHA1Hash cryptoHash];
OFDataArray *digest = [OFDataArray dataArray];
OFData *digest;
enumerator = [_identities objectEnumerator];
while ((identity = [enumerator nextObject]) != nil)
@ -112,8 +112,8 @@
[hash updateWithBuffer: [caps UTF8String]
length: [caps UTF8StringLength]];
[digest addItems: [hash digest]
count: [OFSHA1Hash digestSize]];
digest = [OFData dataWithItems: [hash digest]
count: [[hash class] digestSize]];
return [digest stringByBase64Encoding];
}