1. 25 Jan, 2019 1 commit
  2. 28 Nov, 2018 3 commits
    • stream registration: take an enum type · 02bb39f4
      Accept an enum (`git_stream_t`) during custom stream registration that
      indicates whether the registration structure should be used for standard
      (non-TLS) streams or TLS streams.
      Edward Thomson committed
    • stream: provide generic registration API · df2cc108
      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.
      Edward Thomson committed
    • tls: introduce a wrap function · 43b592ac
      Introduce `git_tls_stream_wrap` which will take an existing `stream`
      with an already connected socket and begin speaking TLS on top of it.
      This is useful if you've built a connection to a proxy server and you
      wish to begin CONNECT over it to tunnel a TLS connection.
      
      Also update the pluggable TLS stream layer so that it can accept a
      registration structure that provides an `init` and `wrap` function,
      instead of a single initialization function.
      Edward Thomson committed
  3. 11 Apr, 2018 1 commit
  4. 23 Oct, 2017 2 commits
  5. 06 Apr, 2016 1 commit
    • tests: fix core/stream test when built with openssl off · 04f47a43
      When passing -DUSE_OPENSSL:BOOL=OFF to cmake the testsuite will
      fail with the following error:
      
      core::stream::register_tls [/tmp/libgit2/tests/core/stream.c:40]
        Function call failed: (error)
        error -1 - <no message>
      
      Fix test to assume failure for tls when built without openssl.
      While at it also fix GIT_WIN32 cpp to check if it's defined
      or not.
      Andreas Henriksson committed
  6. 03 Nov, 2015 1 commit