mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-14 11:43:22 +00:00
Merge pull request #3730 from andhe/fix-stream-test
tests: fix core/stream test when built with openssl off
This commit is contained in:
commit
69723dd8d3
@ -33,8 +33,12 @@ void test_core_stream__register_tls(void)
|
|||||||
cl_git_pass(git_stream_register_tls(NULL));
|
cl_git_pass(git_stream_register_tls(NULL));
|
||||||
error = git_tls_stream_new(&stream, "localhost", "443");
|
error = git_tls_stream_new(&stream, "localhost", "443");
|
||||||
|
|
||||||
/* We don't have arbitrary TLS stream support on Windows */
|
/* We don't have arbitrary TLS stream support on Windows
|
||||||
#if GIT_WIN32
|
* or when openssl support is disabled (except on OSX
|
||||||
|
* with Security framework).
|
||||||
|
*/
|
||||||
|
#if defined(GIT_WIN32) || \
|
||||||
|
(!defined(GIT_SECURE_TRANSPORT) && !defined(GIT_OPENSSL))
|
||||||
cl_git_fail_with(-1, error);
|
cl_git_fail_with(-1, error);
|
||||||
#else
|
#else
|
||||||
cl_git_pass(error);
|
cl_git_pass(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user