Clean up prekey usage.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-02-13 11:40:30 -05:00
parent f493e02608
commit 3c3f782e7d
48 changed files with 172 additions and 59 deletions

View File

@ -6,7 +6,7 @@ target 'Signal' do
pod 'AxolotlKit', git: 'https://github.com/WhisperSystems/SignalProtocolKit.git'
#pod 'AxolotlKit', path: '../SignalProtocolKit'
pod 'SignalServiceKit', git: 'https://github.com/WhisperSystems/SignalServiceKit.git'
#pod 'SignalServiceKit', git: 'https://github.com/WhisperSystems/SignalServiceKit.git', :branch => 'charlesmchen/markUnsentMessages'
#pod 'SignalServiceKit', git: 'https://github.com/WhisperSystems/SignalServiceKit.git', :branch => 'charlesmchen/rateLimitingErrorMessage'
#pod 'SignalServiceKit', path: '../SignalServiceKit'
pod 'OpenSSL'
pod 'PastelogKit', '~> 1.3'

View File

@ -140,7 +140,7 @@ CHECKOUT OPTIONS:
:commit: 945c04f9e70f7119d2ada4edb938849f3b7febab
:git: https://github.com/WhisperSystems/SignalProtocolKit.git
SignalServiceKit:
:commit: 7c55d559d3c9ef7e66a4ebd1daaf7620498c3e3a
:commit: 5ed95c4782be899e81b85196c4695cdb9e45276b
:git: https://github.com/WhisperSystems/SignalServiceKit.git
SocketRocket:
:commit: 41b57bb2fc292a814f758441a05243eb38457027
@ -172,6 +172,6 @@ SPEC CHECKSUMS:
YapDatabase: b1e43555a34a5298e23a045be96817a5ef0da58f
ZXingObjC: bf15b3814f7a105b6d99f47da2333c93a063650a
PODFILE CHECKSUM: 1dec14c6ae3ecc013143fca915e5e7a3bb83bdc0
PODFILE CHECKSUM: 23ca4df281ad1e794af6967db2047f43df88e96a
COCOAPODS: 1.1.1

View File

@ -16,6 +16,8 @@
#endif
#import <SignalServiceKit/Asserts.h>
#import <SignalServiceKit/Constraints.h>
#import <SignalServiceKit/OWSAnalytics.h>
#import <SignalServiceKit/OWSDispatch.h>
#import "iOSVersions.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "EncodedAudioFrame.h"
@implementation EncodedAudioFrame

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "EncodedAudioPacket.h"
@implementation EncodedAudioPacket

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AppAudioManager.h"
#import "Constraints.h"
#import "Environment.h"
#import "RemoteIOAudio.h"
#import "ThreadManager.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "Environment.h"
#import "SpeexCodec.h"

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AudioStretcher.h"
#import "Constraints.h"
#import "Util.h"
#import "time_scale.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "StretchFactorController.h"
#define STRETCH_MODE_EXPAND 0

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "CryptoTools.h"
#import "Constraints.h"
#import "Conversions.h"
#import "EvpMessageDigest.h"
#import "EvpSymetricUtil.h"

View File

@ -1,9 +1,12 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "EvpMessageDigest.h"
#import <OpenSSL/evp.h>
#import <OpenSSL/hmac.h>
#import "Constraints.h"
#import "EvpUtil.h"
#import "NumberUtil.h"

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "EvpSymetricUtil.h"
#import "Constraints.h"
#import "EvpUtil.h"
#import "NumberUtil.h"

View File

@ -3,7 +3,6 @@
//
#import "Environment.h"
#import "Constraints.h"
#import "DH3KKeyAgreementProtocol.h"
#import "DebugLogger.h"
#import "FunctionalUtil.h"

View File

@ -3,7 +3,6 @@
//
#import "PropertyListPreferences.h"
#import "Constraints.h"
#import "TSStorageHeaders.h"
#import <SignalServiceKit/TSPrivacyPreferences.h>

View File

@ -1,11 +1,7 @@
//
// SignalKeyingStorage.m
// Signal
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
// Created by Frederic Jacobs on 09/07/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
//
#import "Constraints.h"
#import "CryptoTools.h"
#import "SignalKeyingStorage.h"
#import "TSStorageManager.h"

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "PacketHandler.h"
#import "Constraints.h"
@implementation PacketHandler

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "HttpRequestOrResponse.h"
#import "Constraints.h"
#import "Util.h"
@implementation HttpRequestOrResponse

View File

@ -1,13 +1,8 @@
//
// RedPhoneAPICall.m
// Signal
//
// Created by Frederic Jacobs on 05/10/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <SignalServiceKit/TSAccountManager.h>
#import "Constraints.h"
#import "CryptoTools.h"
#import "PhoneNumber.h"
#import "RPAPICall.h"

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "CryptoTools.h"
#import "Constraints.h"
#import "HashChain.h"
@implementation HashChain

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ShortAuthenticationStringGenerator.h"
#import "Util.h"
@ -88,4 +91,3 @@ const char* PGP_LIST_ODD[] = {
@(PGP_LIST_ODD[wordIndexTwo])];
}
@end

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "DhPacketSharedSecretHashes.h"
#import "Constraints.h"
#import "CryptoTools.h"
@implementation DhPacketSharedSecretHashes

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "LowLatencyConnector.h"
#import "Constraints.h"
#import "Util.h"
@implementation LowLatencyConnector

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "StreamPair.h"
#import "Constraints.h"
@implementation StreamPair
@synthesize inputStream, outputStream;

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "Environment.h"
#import "NetworkStream.h"
#import "Constraints.h"
#import "Util.h"
#import "ThreadManager.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ThreadManager.h"
#import "UdpSocket.h"
#import "IPAddress.h"

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "InitiatorSessionDescriptor.h"
#import "Constraints.h"
#import "Util.h"
#define SessionIdKey @"sessionId"

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ResponderSessionDescriptor.h"
#import "Constraints.h"
#import "CryptoTools.h"
#import "InitiateSignal.pb.h"
#import "SignalKeyingStorage.h"

View File

@ -1,7 +1,10 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "SignalUtil.h"
#import <SignalServiceKit/TSAccountManager.h>
#import "Constraints.h"
#import "SignalKeyingStorage.h"
#import "Util.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "DecayingSampleEstimator.h"
@implementation DecayingSampleEstimator

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AnonymousOccurrenceLogger.h"
#import "AnonymousValueLogger.h"
#import "Constraints.h"
#import "LoggingUtil.h"
#import "TimeUtil.h"

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AnonymousConditionLogger.h"
#import "Constraints.h"
@implementation AnonymousConditionLogger

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AnonymousOccurrenceLogger.h"
#import "Constraints.h"
@implementation AnonymousOccurrenceLogger

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AnonymousValueLogger.h"
#import "Constraints.h"
@implementation AnonymousValueLogger

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ArrayUtil.h"
#import "Constraints.h"
@implementation NSArray (Util)

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <CoreFoundation/CFSocket.h>
#import <Foundation/Foundation.h>
#import "Constraints.h"
#import "CryptoTools.h"
@interface NSData (Conversions)

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "DataUtil.h"
@implementation NSData (Util)

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "DataUtil.h"
#import "DictionaryUtil.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "FunctionalUtil.h"
@implementation NSArray (FunctionalUtil)

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "FutureUtil.h"
@implementation TOCCancelToken (FutureUtil)

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "NumberUtil.h"
@implementation NumberUtil

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "DataUtil.h"
#import "NumberUtil.h"
#import "StringUtil.h"

View File

@ -1,6 +1,9 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArrayUtil.h"
#import "Constraints.h"
#import "Crc32.h"
#import "DataUtil.h"
#import "DateUtil.h"

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "Zid.h"
@implementation Zid

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "CyclicalBuffer.h"
#import "Util.h"

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <CoreFoundation/CoreFoundation.h>
#import "Constraints.h"
@interface PriorityQueue : NSObject {
@private

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "Queue.h"
@implementation Queue {

View File

@ -1,5 +1,8 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "AnonymousTerminator.h"
#import "Constraints.h"
@implementation AnonymousTerminator

View File

@ -1,4 +1,7 @@
#import "Constraints.h"
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ExceptionsTest.h"
#import "TestUtil.h"