Merge pull request #7119 from ehuss/cert_cb-always-called

Update documentation to clarify that cert cb is always called
This commit is contained in:
Edward Thomson
2025-12-06 17:25:38 +00:00
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -70,9 +70,8 @@ typedef struct {
git_credential_acquire_cb credentials;
/**
* If cert verification fails, this will be called to let the
* user make the final decision of whether to allow the
* connection to proceed. Returns 0 to allow the connection
* This will be called to let the user make the final decision of whether
* to allow the connection to proceed. Returns 0 to allow the connection
* or a negative value to indicate an error.
*/
git_transport_certificate_check_cb certificate_check;

View File

@@ -596,9 +596,8 @@ struct git_remote_callbacks {
git_credential_acquire_cb credentials;
/**
* If cert verification fails, this will be called to let the
* user make the final decision of whether to allow the
* connection to proceed. Returns 0 to allow the connection
* This will be called to let the user make the final decision of whether
* to allow the connection to proceed. Returns 0 to allow the connection
* or a negative value to indicate an error.
*/
git_transport_certificate_check_cb certificate_check;