From 90f375d76424cfb81b60dafeea135d146b0eb2f1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 11 May 2019 15:07:53 +0100 Subject: [PATCH] Remove unused SCRAM functions from sasl/__init__.py --- modules/sasl/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py index 8aaaff17..f6292d4a 100644 --- a/modules/sasl/__init__.py +++ b/modules/sasl/__init__.py @@ -13,15 +13,6 @@ def _validate(self, s): mechanism, _, arguments = s.partition(" ") return {"mechanism": mechanism, "args": arguments} -def _scram_nonce(): - return str(uuid.uuid4().hex) -def _scram_escape(s): - return s.replace("=", "=3D").replace(",", "=2C") -def _scram_unescape(s): - return s.replace("=3D", "=").replace("=2C", ",") -def _scram_xor(s1, s2): - return bytes(a ^ b for a, b in zip(s1, s2)) - @utils.export("serverset", {"setting": "sasl", "help": "Set the sasl username/password for this server", "validate": _validate})