aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.cpp9
-rw-r--r--lib/util.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/util.cpp b/lib/util.cpp
index 03ebf325..359b2959 100644
--- a/lib/util.cpp
+++ b/lib/util.cpp
@@ -135,3 +135,12 @@ int Quotient::patchVersion()
{
return Quotient_VERSION_PATCH;
}
+
+bool Quotient::encryptionSupported()
+{
+#ifdef Quotient_E2EE_ENABLED
+ return true;
+#else
+ return false;
+#endif
+}
diff --git a/lib/util.h b/lib/util.h
index 3910059b..5dd69d74 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -199,4 +199,5 @@ QUOTIENT_API QString versionString();
QUOTIENT_API int majorVersion();
QUOTIENT_API int minorVersion();
QUOTIENT_API int patchVersion();
+QUOTIENT_API bool encryptionSupported();
} // namespace Quotient