slixmpp-omemo/otpkpolicy.py
Maxime “pep” Buquet 757b6b7b27 xep_0384: Fix important details :)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-01-29 18:05:59 +01:00

15 lines
359 B
Python

"""
Slixmpp: The Slick XMPP Library
Shamelessly inspired from Syndace's python-omemo examples.
"""
import omemo
class KeepingOTPKPolicy(omemo.OTPKPolicy):
@staticmethod
def decideOTPK(preKeyMessages):
# Always keep the OTPK.
# This is the unsafest behaviour possible and should be avoided at all costs.
return True