Community
Participate
Working Groups
The TransportHttp class has an internal (private) 'sslVerify' flag whose value is initialized from the repository's internal configuration. There may be cases where the TransportCallback registered for a GIT command may wish to override this flag and set it to a different value than the original configuration in the repository. E.g., the user's code accesses the remote repository via a different (HTTPS) URL than the one listed in the repository configuration but does not wish to verify the certificate due to whatever programming considerations. All that is required is to add a couple of `isSslVerify/setSslVerify` public (!) methods to allow the TransportCallback to query this flag and modify it if the code wishes to do so.
@Lyor: do you have an example of such a case? Regarding sslVerify, see also bug 535850.
Note that the user can configure this in the git config via http.<url>.sslVerify. Which can be placed in the user config, if desired.