MCPcopy Create free account
hub / github.com/libgit2/pygit2 / certificate_check

Method certificate_check

pygit2/callbacks.py:179–199  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

_certificate_check_cbFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected