Этот коммит содержится в:
Alexander UR6LKW
2025-05-31 19:11:26 +03:00
родитель a3b486071d
Коммит 07aa4efb2d
16 изменённых файлов: 280 добавлений и 155 удалений
+2 -4
Просмотреть файл
@@ -7,13 +7,11 @@ from .dmrproto import calc_password_hash
class IPeerAuth(ABC):
@abstractmethod
def allow_peer_id(self, peer_id: int) -> bool:
pass
def allow_peer_id(self, peer_id: int) -> bool: ...
@abstractmethod
def check_password(self, peer_id: int, salt: bytes,
pass_hash: bytes) -> bool:
pass
pass_hash: bytes) -> bool: ...
class AllowAllPeerAuth(IPeerAuth):