(version_desc: str)
| 32 | |
| 33 | @staticmethod |
| 34 | def get_ssh_version(version_desc: str) -> Tuple[str, str, bool]: |
| 35 | is_client = version_desc.endswith('C') |
| 36 | if is_client: |
| 37 | version_desc = version_desc[:-1] |
| 38 | if version_desc.startswith('d'): |
| 39 | return Product.DropbearSSH, version_desc[1:], is_client |
| 40 | elif version_desc.startswith('l1'): |
| 41 | return Product.LibSSH, version_desc[2:], is_client |
| 42 | else: |
| 43 | return Product.OpenSSH, version_desc, is_client |
| 44 | |
| 45 | @classmethod |
| 46 | def get_since_text(cls, versions: List[Optional[str]]) -> Optional[str]: |
no outgoing calls