Fix for iOS
This commit is contained in:
parent
585de53148
commit
42398950e4
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include "secure_qsettings.h"
|
#include "secure_qsettings.h"
|
||||||
#include "encryption_helper.h"
|
#include "encryption_helper.h"
|
||||||
|
#include "platforms/ios/MobileUtils.h"
|
||||||
|
|
||||||
#include <QDataStream>
|
#include <QDataStream>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -11,8 +12,8 @@ SecureQSettings::SecureQSettings(const QString &organization, const QString &app
|
||||||
{
|
{
|
||||||
// load keys from system key storage
|
// load keys from system key storage
|
||||||
#ifdef Q_OS_IOS
|
#ifdef Q_OS_IOS
|
||||||
key = MobileUtils::readFromKeychain(settingsKeyTag);
|
key = QByteArray::fromBase64(MobileUtils::readFromKeychain(settingsKeyTag).toUtf8());
|
||||||
iv = MobileUtils::readFromKeychain(settingsIvTag);
|
iv = QByteArray::fromBase64(MobileUtils::readFromKeychain(settingsIvTag).toUtf8());
|
||||||
#endif
|
#endif
|
||||||
key = "12345qwerty00000";
|
key = "12345qwerty00000";
|
||||||
iv = "000000000000000";
|
iv = "000000000000000";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue