vendor/libgit2/src/streams/tls.h in rugged-0.27.10 vs vendor/libgit2/src/streams/tls.h in rugged-0.27.10.1

- old
+ new

@@ -11,21 +11,13 @@ #include "git2/sys/stream.h" /** * Create a TLS stream with the most appropriate backend available for - * the current platform, whether that's SecureTransport on macOS, - * OpenSSL or mbedTLS on other Unixes, or something else entirely. - */ -extern int git_tls_stream_new(git_stream **out, const char *host, const char *port); - -/** - * Create a TLS stream on top of an existing insecure stream, using - * the most appropriate backend available for the current platform. + * the current platform. * - * This allows us to create a CONNECT stream on top of a proxy; - * using SecureTransport on macOS, OpenSSL or mbedTLS on other - * Unixes, or something else entirely. + * This allows us to ask for a SecureTransport or OpenSSL stream + * according to being on general Unix vs OS X. */ -extern int git_tls_stream_wrap(git_stream **out, git_stream *in, const char *host); +extern int git_tls_stream_new(git_stream **out, const char *host, const char *port); #endif