aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/qolmoutboundsession.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/qolmoutboundsession.h')
-rw-r--r--lib/crypto/qolmoutboundsession.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/crypto/qolmoutboundsession.h b/lib/crypto/qolmoutboundsession.h
index f1df0395..201a178a 100644
--- a/lib/crypto/qolmoutboundsession.h
+++ b/lib/crypto/qolmoutboundsession.h
@@ -2,6 +2,7 @@
//
// SPDX-License-Identifier: LGPL-2.1-or-later
+
#pragma once
#include "olm/olm.h"
@@ -21,11 +22,11 @@ public:
//! Creates a new instance of `QOlmOutboundGroupSession`.
//! Throw OlmError on errors
static std::unique_ptr<QOlmOutboundGroupSession> create();
- //! Serialises an `QOlmOutboundGroupSession` to encrypted Base64.
+ //! Serialises a `QOlmOutboundGroupSession` to encrypted Base64.
std::variant<QByteArray, QOlmError> pickle(const PicklingMode &mode);
//! Deserialises from encrypted Base64 that was previously obtained by
//! pickling a `QOlmOutboundGroupSession`.
- static std::variant<std::unique_ptr<QOlmOutboundGroupSession>, QOlmError> unpickle(QByteArray &pickled, const PicklingMode &mode);
+ static std::variant<std::unique_ptr<QOlmOutboundGroupSession>, QOlmError> unpickle(const QByteArray &pickled, const PicklingMode &mode);
//! Encrypts a plaintext message using the session.
std::variant<QByteArray, QOlmError> encrypt(const QString &plaintext);