diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-05-05 20:38:58 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-05-05 20:38:58 +0300 |
commit | 0988b0590cf9c2909131e86a56a1ad9ed1745431 (patch) | |
tree | d0162ff769d42ed95e34551e3b93de70048025fc /matrix/nocrypto.go | |
parent | 9b2b164108cc516ee4a8f49539c3beef22006a6d (diff) |
Make e2ee optional
Diffstat (limited to 'matrix/nocrypto.go')
-rw-r--r-- | matrix/nocrypto.go | 13 |
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 +} |