diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2015-03-17 09:44:56 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-03-17 09:44:56 -0400 |
| commit | 828e595969efee951d67f23cfd9f4b8461ce71fb (patch) | |
| tree | 11e95c5a161ce1def1933fa6f4bc84220105791c /src/stream.h | |
| parent | c07d02064d1c58dea47b48580abf0523f59c1bda (diff) | |
| parent | 84d83b8e75a85b22c6003eaf9416b98fe6916d29 (diff) | |
| download | libgit2-828e595969efee951d67f23cfd9f4b8461ce71fb.tar.gz | |
Merge pull request #2982 from libgit2/cmn/stream-check-ec
Don't ask for a stream's certificate unless it's encrypted
Diffstat (limited to 'src/stream.h')
| -rw-r--r-- | src/stream.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h index 3a7ef9514..d810e704d 100644 --- a/src/stream.h +++ b/src/stream.h @@ -15,6 +15,11 @@ GIT_INLINE(int) git_stream_connect(git_stream *st) return st->connect(st); } +GIT_INLINE(int) git_stream_is_encrypted(git_stream *st) +{ + return st->encrypted; +} + GIT_INLINE(int) git_stream_certificate(git_cert **out, git_stream *st) { if (!st->encrypted) { |
