Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added error checking to compact() and support encryption on Linux #832

Merged
merged 8 commits into from
May 29, 2015

Conversation

finnschiermer
Copy link
Contributor

This PR makes the description of SharedGroup::compact more precise and checks that the SharedGroup is attached when compact is called.

It also allows encryption to be enabled on Linux.
All core unittests now pass with encryption enabled on Linux.

@finnschiermer finnschiermer changed the title added error checking to compact() added error checking to compact() and support encryption on Linux May 18, 2015
@finnschiermer
Copy link
Contributor Author

@kspangsege

@@ -73,10 +73,17 @@ AESCryptor::AESCryptor(const uint8_t* key) {
CCCryptorCreate(kCCEncrypt, kCCAlgorithmAES, 0 /* options */, key, kCCKeySizeAES256, 0 /* IV */, &m_encr);
CCCryptorCreate(kCCDecrypt, kCCAlgorithmAES, 0 /* options */, key, kCCKeySizeAES256, 0 /* IV */, &m_decr);
#else
#ifdef REALM_ANDROID

#if defined(REALM_ANDROID) || defined(__linux__)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure __linux__ is defined on Android, so #ifdef __linux__ would suffice here.

@kspangsege
Copy link
Contributor

👍

finnschiermer added a commit that referenced this pull request May 29, 2015
added error checking to compact() and support encryption on Linux
@finnschiermer finnschiermer merged commit 09371e9 into master May 29, 2015
@finnschiermer finnschiermer deleted the add_checking_to_compact branch June 4, 2015 10:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants