From f84d541eae9f340a5c608115cc1cac09bdde2b60 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 4 Jan 2020 00:45:55 +0100 Subject: [PATCH] Adjust to ObjFW changes --- src/XMPPDiscoEntity.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/XMPPDiscoEntity.m b/src/XMPPDiscoEntity.m index a89fde6..062d29e 100644 --- a/src/XMPPDiscoEntity.m +++ b/src/XMPPDiscoEntity.m @@ -114,7 +114,8 @@ - (OFString *)capsHash { OFMutableString *caps = [OFMutableString string]; - OFSHA1Hash *hash = [OFSHA1Hash cryptoHash]; + OFSHA1Hash *hash = [OFSHA1Hash + cryptoHashWithAllowsSwappableMemory: true]; OFData *digest; for (XMPPDiscoIdentity *identity in _identities)