1
1
diff --git a/CMakeLists.txt b/CMakeLists.txt
2
- index 0f9cff5..a345636 100644
2
+ index 4e1104f..8110489 100644
3
3
--- a/CMakeLists.txt
4
4
+++ b/CMakeLists.txt
5
- @@ -112 ,6 +112 ,10 @@ IF (HAVE_STRUCT_STAT_NSEC OR WIN32)
6
- OPTION( USE_NSEC "Care about sub-second file mtimes and ctimes" OFF )
5
+ @@ -113 ,6 +113 ,10 @@ IF (HAVE_STRUCT_STAT_NSEC OR WIN32)
6
+ OPTION( USE_NSEC "Care about sub-second file mtimes and ctimes" ON )
7
7
ENDIF()
8
8
9
9
+ IF (NOT USE_OPENSSL)
@@ -126,13 +126,13 @@ index 0000000..2f4adbc
126
126
+ MBEDCRYPTO_LIBRARY
127
127
+ )
128
128
diff --git a/src/global.c b/src/global.c
129
- index 198bc1e..969b9b9 100644
129
+ index e2ad8fe..c5b4269 100644
130
130
--- a/src/global.c
131
131
+++ b/src/global.c
132
- @@ -9,7 +9,11 @@
133
- #include "hash.h"
132
+ @@ -10,7 +10,11 @@
134
133
#include "sysdir.h"
135
134
#include "filter.h"
135
+ #include "merge_driver.h"
136
136
+ #ifdef GIT_OPENSSL
137
137
#include "openssl_stream.h"
138
138
+ #elif GIT_MBEDTLS
@@ -141,10 +141,10 @@ index 198bc1e..969b9b9 100644
141
141
#include "thread-utils.h"
142
142
#include "git2/global.h"
143
143
#include "transports/ssh.h"
144
- @@ -59,8 +63,13 @@ static int init_common(void)
145
- if ((ret = git_hash_global_init()) == 0 &&
144
+ @@ -61,8 +65,13 @@ static int init_common(void)
146
145
(ret = git_sysdir_global_init()) == 0 &&
147
146
(ret = git_filter_global_init()) == 0 &&
147
+ (ret = git_merge_driver_global_init()) == 0 &&
148
148
- (ret = git_transport_ssh_global_init()) == 0 &&
149
149
- (ret = git_openssl_stream_global_init()) == 0)
150
150
+ (ret = git_transport_ssh_global_init()) == 0
@@ -850,32 +850,6 @@ index 83e2d06..6fb538f 100644
850
850
#else
851
851
GIT_UNUSED(out);
852
852
GIT_UNUSED(host);
853
- diff --git a/src/transport.c b/src/transport.c
854
- index 327052f..a438459 100644
855
- --- a/src/transport.c
856
- +++ b/src/transport.c
857
- @@ -29,7 +29,7 @@ static transport_definition local_transport_definition = { "file://", git_transp
858
- static transport_definition transports[] = {
859
- { "git://", git_transport_smart, &git_subtransport_definition },
860
- { "http://", git_transport_smart, &http_subtransport_definition },
861
- - #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT)
862
- + #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_MBEDTLS)
863
- { "https://", git_transport_smart, &http_subtransport_definition },
864
- #endif
865
- { "file://", git_transport_local, NULL },
866
- diff --git a/src/transports/http.c b/src/transports/http.c
867
- index f0efd95..5cd7484 100644
868
- --- a/src/transports/http.c
869
- +++ b/src/transports/http.c
870
- @@ -598,7 +598,7 @@ static int http_connect(http_subtransport *t)
871
-
872
- error = git_stream_connect(t->io);
873
-
874
- - #if defined(GIT_OPENSSL) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_CURL)
875
- + #if defined(GIT_OPENSSL) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_CURL) || defined(GIT_MBEDTLS)
876
- if ((!error || error == GIT_ECERTIFICATE) && t->owner->certificate_check_cb != NULL &&
877
- git_stream_is_encrypted(t->io)) {
878
- git_cert *cert;
879
853
diff --git a/tests/core/stream.c b/tests/core/stream.c
880
854
index 0cbf442..a4fa2b4 100644
881
855
--- a/tests/core/stream.c
0 commit comments