Certificate callback. Override with your own function to determine whether to accept the server's certificate. Returns: True to connect, False to abort. Parameters: certificate : None The certificate. It is currently always None while we figure
(self, certificate: None, valid: bool, host: bytes)
| 177 | raise Passthrough |
| 178 | |
| 179 | def certificate_check(self, certificate: None, valid: bool, host: bytes) -> bool: |
| 180 | """ |
| 181 | Certificate callback. Override with your own function to determine |
| 182 | whether to accept the server's certificate. |
| 183 | |
| 184 | Returns: True to connect, False to abort. |
| 185 | |
| 186 | Parameters: |
| 187 | |
| 188 | certificate : None |
| 189 | The certificate. It is currently always None while we figure out |
| 190 | how to represent it cross-platform. |
| 191 | |
| 192 | valid : bool |
| 193 | Whether the TLS/SSH library thinks the certificate is valid. |
| 194 | |
| 195 | host : str |
| 196 | The hostname we want to connect to. |
| 197 | """ |
| 198 | |
| 199 | raise Passthrough |
| 200 | |
| 201 | def push_negotiation(self, updates: list['PushUpdate']) -> None: |
| 202 | """ |
no outgoing calls
no test coverage detected