diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-04-12 19:04:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 19:04:09 -0400 |
commit | b12fe0aeb3cbee8c4067a4fd229a7fb54de6781b (patch) | |
tree | c59f8690f0ab0ad4a266955a153b4af50450cb72 /xcode/OLMKit/OLMPkEncryption.m | |
parent | 086133f39a175a72ea7c898c708fed38b8dbd36b (diff) | |
parent | 5147349feabe93d4cfd3d45e94002c1bb8f87923 (diff) |
Merge pull request #88 from matrix-org/manuroe/sas_pksigning
OLMKit: add Short Authentication String verification
Diffstat (limited to 'xcode/OLMKit/OLMPkEncryption.m')
-rw-r--r-- | xcode/OLMKit/OLMPkEncryption.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xcode/OLMKit/OLMPkEncryption.m b/xcode/OLMKit/OLMPkEncryption.m index c2e3d04..34ad57c 100644 --- a/xcode/OLMKit/OLMPkEncryption.m +++ b/xcode/OLMKit/OLMPkEncryption.m @@ -65,13 +65,13 @@ size_t macLength = olm_pk_mac_length(session); NSMutableData *macData = [NSMutableData dataWithLength:macLength]; - if (!ciphertext) { + if (!macData) { return nil; } size_t ephemeralKeyLength = olm_pk_key_length(); NSMutableData *ephemeralKeyData = [NSMutableData dataWithLength:ephemeralKeyLength]; - if (!ciphertext) { + if (!ephemeralKeyData) { return nil; } |