@@ -113,12 +113,12 @@ class RemoteCallbacks(Payload):
113
113
RemoteCallbacks(certificate=certificate).
114
114
"""
115
115
116
- def __init__ (self , credentials = None , certificate = None ):
116
+ def __init__ (self , credentials = None , certificate_check = None ):
117
117
super ().__init__ ()
118
118
if credentials is not None :
119
119
self .credentials = credentials
120
- if certificate is not None :
121
- self .certificate = certificate
120
+ if certificate_check is not None :
121
+ self .certificate_check = certificate_check
122
122
123
123
def sideband_progress (self , string ):
124
124
"""
@@ -344,7 +344,7 @@ def git_fetch_options(payload, opts=None):
344
344
opts .callbacks .transfer_progress = C ._transfer_progress_cb
345
345
opts .callbacks .update_tips = C ._update_tips_cb
346
346
opts .callbacks .credentials = C ._credentials_cb
347
- opts .callbacks .certificate_check = C ._certificate_cb
347
+ opts .callbacks .certificate_check = C ._certificate_check_cb
348
348
# Payload
349
349
handle = ffi .new_handle (payload )
350
350
opts .callbacks .payload = handle
@@ -368,7 +368,7 @@ def git_push_options(payload, opts=None):
368
368
opts .callbacks .transfer_progress = C ._transfer_progress_cb
369
369
opts .callbacks .update_tips = C ._update_tips_cb
370
370
opts .callbacks .credentials = C ._credentials_cb
371
- opts .callbacks .certificate_check = C ._certificate_cb
371
+ opts .callbacks .certificate_check = C .
372
372
opts .callbacks .push_update_reference = C ._push_update_reference_cb
373
373
# Payload
374
374
handle = ffi .new_handle (payload )
@@ -457,7 +457,7 @@ def wrapper(*args):
457
457
458
458
459
459
@libgit2_callback
460
- def _certificate_cb (cert_i , valid , host , data ):
460
+ def _certificate_check_cb (cert_i , valid , host , data ):
461
461
# We want to simulate what should happen if libgit2 supported pass-through
462
462
# for this callback. For SSH, 'valid' is always False, because it doesn't
463
463
# look at known_hosts, but we do want to let it through in order to do what
0 commit comments