Commit 0eca42304a10c9ad6170a38a440dfab8e354d38d

Patrick Steinhardt 2018-04-06T10:03:09

Merge pull request #4597 from cjhoward92/fix/cert-check-docs remote/proxy: fix git_transport_certificate_check_db description

diff --git a/include/git2/proxy.h b/include/git2/proxy.h
index 194cbb6..06d46d3 100644
--- a/include/git2/proxy.h
+++ b/include/git2/proxy.h
@@ -64,8 +64,8 @@ typedef struct {
 	/**
 	 * 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 1 to allow the connection, 0
-	 * to disallow it or a negative value to indicate an error.
+	 * connection to proceed. Returns 0 to allow the connection
+	 * or a negative value to indicate an error.
 	 */
         git_transport_certificate_check_cb certificate_check;
 
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 22e2291..3d463de 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -432,8 +432,8 @@ struct git_remote_callbacks {
 	/**
 	 * 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 1 to allow the connection, 0
-	 * to disallow it or a negative value to indicate an error.
+	 * connection to proceed. Returns 0 to allow the connection
+	 * or a negative value to indicate an error.
 	 */
 	git_transport_certificate_check_cb certificate_check;