aboutsummaryrefslogtreecommitdiff
path: root/matrix/nocrypto.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-06 20:06:35 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-06 20:06:35 +0300
commit5b3e91524e000fe07fe30eff70061c9dd796014e (patch)
tree47eac32a4ce211b7d240841fe35e1a0cb745680c /matrix/nocrypto.go
parent96bb87e8ac8f45d56d487ea6c16d67f057d97e1f (diff)
parentebdfe914283fb91204ca8512a0a73a78fe41998f (diff)
Merge branch 'e2ee'
Diffstat (limited to 'matrix/nocrypto.go')
-rw-r--r--matrix/nocrypto.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/matrix/nocrypto.go b/matrix/nocrypto.go
new file mode 100644
index 0000000..979afda
--- /dev/null
+++ b/matrix/nocrypto.go
@@ -0,0 +1,13 @@
+// This contains no-op stubs of the methods in crypto.go for non-cgo builds with crypto disabled.
+
+// +build !cgo
+
+package matrix
+
+func isBadEncryptError(err error) bool {
+ return false
+}
+
+func (c *Container) initCrypto() error {
+ return nil
+}