| author | Matthew Wild
<mwild1@gmail.com> 2025-05-07 17:14:28 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-09-29 13:43:04 UTC |
| parent | ae39c34668ddba8cb7389aed6f2e78eb5cd8b9e1 |
| snikket/EncryptionPolicy.hx | +15 | -0 |
diff --git a/snikket/EncryptionPolicy.hx b/snikket/EncryptionPolicy.hx new file mode 100644 index 0000000..8f5b030 --- /dev/null +++ b/snikket/EncryptionPolicy.hx @@ -0,0 +1,15 @@ +package snikket; + +@:structInit +class EncryptionPolicy { + // These allow blocking all incoming/outgoing + // chat messages which are not using E2EE + public final allowUnencryptedIncoming:Bool; + public final allowUnencryptedOutgoing:Bool; + + // Outgoing encryption will be preferred, + // but may not be used if a recipient lacks + // support (and of course if the above + // policies permit unencrypted) + public final preferEncryptedOutgoing:Bool; +}