Update documentation to clarify that cert cb is always called

This removes the phrase "if cert verification fails" because the
certificate callback is *always* called whether it fails or not. This
was changed in
17491f6e56,
but presumably this piece of documentation was not updated.
This commit is contained in:
Eric Huss
2025-08-12 10:12:59 -07:00
parent 58d9363f02
commit b4ad6ffae6
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;