http: treat config options sslCAPath and sslCAInfo as paths
This enables ~ and ~user expansion for these config options. Signed-off-by: Charles Bailey <cbailey32@bloomberg.net> Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:

committed by
Jeff King

parent
5cb2e162d2
commit
bf9acba2c1
4
http.c
4
http.c
@ -215,10 +215,10 @@ static int http_options(const char *var, const char *value, void *cb)
|
|||||||
#endif
|
#endif
|
||||||
#if LIBCURL_VERSION_NUM >= 0x070908
|
#if LIBCURL_VERSION_NUM >= 0x070908
|
||||||
if (!strcmp("http.sslcapath", var))
|
if (!strcmp("http.sslcapath", var))
|
||||||
return git_config_string(&ssl_capath, var, value);
|
return git_config_pathname(&ssl_capath, var, value);
|
||||||
#endif
|
#endif
|
||||||
if (!strcmp("http.sslcainfo", var))
|
if (!strcmp("http.sslcainfo", var))
|
||||||
return git_config_string(&ssl_cainfo, var, value);
|
return git_config_pathname(&ssl_cainfo, var, value);
|
||||||
if (!strcmp("http.sslcertpasswordprotected", var)) {
|
if (!strcmp("http.sslcertpasswordprotected", var)) {
|
||||||
ssl_cert_password_required = git_config_bool(var, value);
|
ssl_cert_password_required = git_config_bool(var, value);
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user