diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-18 10:29:07 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 15:46:57 +0000 |
| commit | df2cc1087f6de8718319e5bcc65ca8e0e07b717e (patch) | |
| tree | 02264b646329a5eeca8940fa8557e714e303a50f /src/global.c | |
| parent | 0467606ff4dbf57401c8b58188652df821ec865b (diff) | |
| download | libgit2-df2cc1087f6de8718319e5bcc65ca8e0e07b717e.tar.gz | |
stream: provide generic registration API
Update the new stream registration API to be `git_stream_register`
which takes a registration structure and a TLS boolean. This allows
callers to register non-TLS streams as well as TLS streams.
Provide `git_stream_register_tls` that takes just the init callback for
backward compatibliity.
Diffstat (limited to 'src/global.c')
| -rw-r--r-- | src/global.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/global.c b/src/global.c index 51d34f61b..86a35a2ff 100644 --- a/src/global.c +++ b/src/global.c @@ -12,7 +12,7 @@ #include "sysdir.h" #include "filter.h" #include "merge_driver.h" -#include "streams/tls.h" +#include "streams/registry.h" #include "streams/mbedtls.h" #include "streams/openssl.h" #include "thread-utils.h" @@ -67,7 +67,7 @@ static int init_common(void) (ret = git_filter_global_init()) == 0 && (ret = git_merge_driver_global_init()) == 0 && (ret = git_transport_ssh_global_init()) == 0 && - (ret = git_tls_stream_global_init()) == 0 && + (ret = git_stream_registry_global_init()) == 0 && (ret = git_openssl_stream_global_init()) == 0 && (ret = git_mbedtls_stream_global_init()) == 0) ret = git_mwindow_global_init(); |
