@@ -226,7 +226,10 @@ GIT_EXTERN(int) git_transport_smart(
226226 * @param cert the certificate to pass to the caller
227227 * @param valid whether we believe the certificate is valid
228228 * @param hostname the hostname we connected to
229- * @return the return value of the callback
229+ * @return the return value of the callback: 0 for no error, GIT_PASSTHROUGH
230+ * to indicate that there is no callback registered (or the callback
231+ * refused to validate the certificate and callers should behave as
232+ * if no callback was set), or < 0 for an error
230233 */
231234GIT_EXTERN (int ) git_transport_smart_certificate_check (git_transport * transport , git_cert * cert , int valid , const char * hostname );
232235
@@ -237,7 +240,10 @@ GIT_EXTERN(int) git_transport_smart_certificate_check(git_transport *transport,
237240 * @param transport a smart transport
238241 * @param user the user we saw on the url (if any)
239242 * @param methods available methods for authentication
240- * @return the return value of the callback
243+ * @return the return value of the callback: 0 for no error, GIT_PASSTHROUGH
244+ * to indicate that there is no callback registered (or the callback
245+ * refused to provide credentials and callers should behave as if no
246+ * callback was set), or < 0 for an error
241247 */
242248GIT_EXTERN (int ) git_transport_smart_credentials (git_cred * * out , git_transport * transport , const char * user , int methods );
243249
0 commit comments