diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-11-01 15:19:54 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-12-10 01:17:41 +0100 |
| commit | 468d7b11f9642f37a2c54e6fd6d539b223a103aa (patch) | |
| tree | afa778c340a451e6a5d9d29fb07f82e528f309e3 /src/socket_stream.h | |
| parent | dd4ff2c9b53dc9c8ba623477ead3e05f9baf73a0 (diff) | |
| download | libgit2-468d7b11f9642f37a2c54e6fd6d539b223a103aa.tar.gz | |
Add an OpenSSL IO stream
This unfortunately isn't as stackable as could be possible, as it
hard-codes the socket stream. This is because the method of using a
custom openssl BIO is not clear, and we do not need this for now. We can
still bring this in if and as we need it.
Diffstat (limited to 'src/socket_stream.h')
| -rw-r--r-- | src/socket_stream.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/socket_stream.h b/src/socket_stream.h new file mode 100644 index 000000000..8e9949fcd --- /dev/null +++ b/src/socket_stream.h @@ -0,0 +1,21 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_socket_stream_h__ +#define INCLUDE_socket_stream_h__ + +#include "netops.h" + +typedef struct { + git_stream parent; + char *host; + char *port; + GIT_SOCKET s; +} git_socket_stream; + +extern int git_socket_stream_new(git_stream **out, const char *host, const char *port); + +#endif |
