Skip to content

Commit 061a0ad

Browse files
committed
settings: don't hard-code HTTPS capability
This partially reverts bdec62d which activates the transport code-paths which allow you to use a custom TLS implementation without having to have one at build-time. However the capabilities describe how libgit2 was built, not what it could potentially support, bring back the ifdefs so we only say we support HTTPS if libgit2 was itself built with a TLS implementation.
1 parent c5e6ba2 commit 061a0ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/settings.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ int git_libgit2_features(void)
2929
#ifdef GIT_THREADS
3030
| GIT_FEATURE_THREADS
3131
#endif
32+
#if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT)
3233
| GIT_FEATURE_HTTPS
34+
#endif
3335
#if defined(GIT_SSH)
3436
| GIT_FEATURE_SSH
3537
#endif

0 commit comments

Comments
 (0)