Skip to content

Commit

Permalink
compilation fixes for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Mar 31, 2023
1 parent 158e06d commit b15f937
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#include "clientsideencryption.h"

#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/rand.h>

#include "account.h"
#include "capabilities.h"
#include "networkjobs.h"
Expand Down Expand Up @@ -31,13 +38,6 @@
#include <string>
#include <algorithm>

#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/rand.h>

#include <cstdio>

QDebug operator<<(QDebug out, const std::string& str)
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/vfs/cfapi/hydrationjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void OCC::HydrationJob::slotCheckFolderEncryptedMetadata(const QJsonDocument &js
// TODO: the following code is borrowed from PropagateDownloadEncrypted (see HydrationJob::onNewConnection() for explanation of next steps)
qCDebug(lcHydration) << "Metadata Received reading" << e2eMangledName();
const QString filename = e2eMangledName();
const FolderMetadata metadata(_account, json.toJson(QJsonDocument::Compact));
const FolderMetadata metadata(_account, FolderMetadata::RequiredMetadataVersion::Version1, json.toJson(QJsonDocument::Compact));

if (metadata.isMetadataSetup()) {
const QVector<EncryptedFile> files = metadata.files();
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/vfs/cfapi/vfs_cfapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void VfsCfApi::scheduleHydrationJob(const QString &requestId, const QString &fol
job->setJournal(params().journal);
job->setRequestId(requestId);
job->setFolderPath(folderPath);
job->setIsEncryptedFile(record._isE2eEncrypted);
job->setIsEncryptedFile(record.isE2eEncrypted());
job->setE2eMangledName(record._e2eMangledName);
connect(job, &HydrationJob::finished, this, &VfsCfApi::onHydrationJobFinished);
d->hydrationJobs << job;
Expand Down

0 comments on commit b15f937

Please sign in to comment.