aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/qolmoutboundsession.h
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-04-19 16:07:57 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commitea617d31cf3f72f76fd49c0a20f445a78678fe5f (patch)
treea99a186670eb3b50588411fe6d4eb9ddad2dfcb4 /lib/crypto/qolmoutboundsession.h
parentbc4ef60c29709a6f782f6e75e1f040f250fb8bd7 (diff)
downloadlibquotient-ea617d31cf3f72f76fd49c0a20f445a78678fe5f.tar.gz
libquotient-ea617d31cf3f72f76fd49c0a20f445a78678fe5f.zip
Apply suggestions from code review
Co-authored-by: Tobias Fella <9750016+TobiasFella@users.noreply.github.com>
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);