aboutsummaryrefslogtreecommitdiff
path: root/net-im/mtxclient/files/patch-lib_crypto_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/mtxclient/files/patch-lib_crypto_client.cpp')
-rw-r--r--net-im/mtxclient/files/patch-lib_crypto_client.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-im/mtxclient/files/patch-lib_crypto_client.cpp b/net-im/mtxclient/files/patch-lib_crypto_client.cpp
new file mode 100644
index 000000000000..83412307b762
--- /dev/null
+++ b/net-im/mtxclient/files/patch-lib_crypto_client.cpp
@@ -0,0 +1,21 @@
+--- lib/crypto/client.cpp.orig 2021-10-28 17:44:28 UTC
++++ lib/crypto/client.cpp
+@@ -37,15 +37,15 @@ static const std::array olmErrorStrings{
+
+ };
+
+-OlmErrorCode
++mtx::crypto::OlmErrorCode
+ olm_exception::ec_from_string(std::string_view error)
+ {
+ for (size_t i = 0; i < olmErrorStrings.size(); i++) {
+ if (olmErrorStrings[i] == error)
+- return static_cast<OlmErrorCode>(i);
++ return static_cast<mtx::crypto::OlmErrorCode>(i);
+ }
+
+- return OlmErrorCode::UNKNOWN_ERROR;
++ return mtx::crypto::OlmErrorCode::UNKNOWN_ERROR;
+ }
+
+ void