Skip to content

Commit 1a9a26b

Browse files
Fix libsqlfs SQLCipher cipher compat version
1 parent 0a01e52 commit 1a9a26b

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@
3737
[submodule "Submodules/YapTaskQueue"]
3838
path = Submodules/YapTaskQueue
3939
url = [email protected]:ChatSecure/YapTaskQueue.git
40+
[submodule "Submodules/libsqlfs"]
41+
path = Submodules/libsqlfs
42+
url = [email protected]:ChatSecure/libsqlfs.git

ChatSecure/Classes/Controllers/OTRMediaFileManager.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ - (instancetype)init
5252
- (BOOL)setupWithPath:(NSString *)path password:(NSString *)password
5353
{
5454
_ioCipher = [[IOCipher alloc] initWithPath:path password:password];
55-
return _ioCipher != nil;
55+
if (!_ioCipher) {
56+
return NO;
57+
}
58+
return [_ioCipher setCipherCompatibility:3];
5659
}
5760

5861
- (void)copyDataFromFilePath:(NSString *)filePath

Podfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ abstract_target 'ChatSecureCorePods' do
6666
pod 'Mantle', :podspec => 'Podspecs/Mantle.podspec.json'
6767

6868
# The upstream 1.3.2 has a regression https://github.com/ChatSecure/ChatSecure-iOS/issues/1075
69-
pod 'libsqlfs/SQLCipher', :git => 'https://github.com/ChatSecure/libsqlfs.git', :branch => '1.3.2-chatsecure'
69+
# pod 'libsqlfs/SQLCipher', :git => 'https://github.com/ChatSecure/libsqlfs.git', :branch => '1.3.2-chatsecure'
70+
pod 'libsqlfs/SQLCipher', :path => 'Submodules/libsqlfs/libsqlfs.podspec'
71+
7072
pod 'IOCipher/GCDWebServer', :path => 'Submodules/IOCipher/IOCipher.podspec'
7173
# pod 'YapTaskQueue/SQLCipher', :git => 'https://github.com/ChatSecure/YapTaskQueue.git', :branch => 'swift4'
7274
pod 'YapTaskQueue/SQLCipher', :path => 'Submodules/YapTaskQueue/YapTaskQueue.podspec'

Podfile.lock

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ DEPENDENCIES:
272272
- JSQMessagesViewController (from `Submodules/JSQMessagesViewController/JSQMessagesViewController.podspec`)
273273
- JTSImageViewController (~> 1.4)
274274
- Kvitto (~> 1.0)
275-
- libsqlfs/SQLCipher (from `https://github.com/ChatSecure/libsqlfs.git`, branch `1.3.2-chatsecure`)
275+
- libsqlfs/SQLCipher (from `Submodules/libsqlfs/libsqlfs.podspec`)
276276
- LicensePlist
277277
- LumberjackConsole (from `Submodules/LumberjackConsole/LumberjackConsole.podspec`)
278278
- Mantle (from `Podspecs/Mantle.podspec.json`)
@@ -340,8 +340,7 @@ EXTERNAL SOURCES:
340340
JSQMessagesViewController:
341341
:path: Submodules/JSQMessagesViewController/JSQMessagesViewController.podspec
342342
libsqlfs:
343-
:branch: 1.3.2-chatsecure
344-
:git: https://github.com/ChatSecure/libsqlfs.git
343+
:path: Submodules/libsqlfs/libsqlfs.podspec
345344
LumberjackConsole:
346345
:path: Submodules/LumberjackConsole/LumberjackConsole.podspec
347346
Mantle:
@@ -363,9 +362,6 @@ EXTERNAL SOURCES:
363362
:path: Submodules/YapTaskQueue/YapTaskQueue.podspec
364363

365364
CHECKOUT OPTIONS:
366-
libsqlfs:
367-
:commit: 36b9d6a56a5918be3a97695063ca32dbf963e887
368-
:git: https://github.com/ChatSecure/libsqlfs.git
369365
Mantle:
370366
:commit: 4c1a09cb0c0811956cd35262340e42b940971cbb
371367
:git: https://github.com/ChatSecure/Mantle.git
@@ -424,6 +420,6 @@ SPEC CHECKSUMS:
424420
YapTaskQueue: f3b23875bead71a7ee57b65637ce9c0e98b68c34
425421
ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb
426422

427-
PODFILE CHECKSUM: 1b808a272fcdf8975849b0c9e9686125fe2debaf
423+
PODFILE CHECKSUM: 8e8e3602306b4364cad1ea5fa7a6e7ff5ff685db
428424

429425
COCOAPODS: 1.7.4

Submodules/IOCipher

Submodules/libsqlfs

Submodule libsqlfs added at 4456f8a

0 commit comments

Comments
 (0)