From 42781b5c83342750ef7fbab5028ceeb6bd394ad0 Mon Sep 17 00:00:00 2001 From: Frederic Jacobs Date: Thu, 27 Nov 2014 02:16:13 +0100 Subject: [PATCH] Fixing typo --- AxolotlKit.podspec | 2 +- AxolotlKit/Classes/Sessions/SessionBuilder.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AxolotlKit.podspec b/AxolotlKit.podspec index d43c280..b44fb47 100644 --- a/AxolotlKit.podspec +++ b/AxolotlKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "AxolotlKit" - s.version = "0.0.2" + s.version = "0.2" s.summary = "AxolotlKit is a Free implementation of the Axolotl protocol in Objective-C" s.homepage = "https://github.com/WhisperSystems/AxolotlKit" s.license = "GPLv2" diff --git a/AxolotlKit/Classes/Sessions/SessionBuilder.m b/AxolotlKit/Classes/Sessions/SessionBuilder.m index 1fb4199..fbeadc8 100644 --- a/AxolotlKit/Classes/Sessions/SessionBuilder.m +++ b/AxolotlKit/Classes/Sessions/SessionBuilder.m @@ -77,7 +77,7 @@ - (void)processPrekeyBundle:(PreKeyBundle*)preKeyBundle{ @throw [NSException exceptionWithName:UntrustedIdentityKeyException reason:@"Identity key is not valid" userInfo:@{}]; } - if (![Ed25519 verifySignature:preKeyBundle.signedPreKeySignature publicKey:theirIdentityKey data:theirSignedPreKey]) { + if (![Ed25519 verifySignature:preKeyBundle.signedPreKeySignature publicKey:theirIdentityKey data:preKeyBundle.signedPreKeyPublic]) { @throw [NSException exceptionWithName:InvalidKeyException reason:@"KeyIsNotValidlySigned" userInfo:nil]; }