<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/libgit2/transports, branch ethomson/sysdir_test</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>ssh: give a realistic error message</title>
<updated>2023-02-09T12:10:40+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2023-01-24T11:50:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=523d8b64ba06cfd89fc0b4be2949cd4ed43e4cc7'/>
<id>523d8b64ba06cfd89fc0b4be2949cd4ed43e4cc7</id>
<content type='text'>
I spent an hour banging my head against this, when it was because the
remote didn't trust my key.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I spent an hour banging my head against this, when it was because the
remote didn't trust my key.
</pre>
</div>
</content>
</entry>
<entry>
<title>ssh: support windows `known_hosts` files</title>
<updated>2023-02-09T12:10:40+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2023-01-22T21:10:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=00893d2f4520416a0b3de5a5f42c2ae68b7fc873'/>
<id>00893d2f4520416a0b3de5a5f42c2ae68b7fc873</id>
<content type='text'>
Use `git_sysdir_find_homedir_file` to identify the path to the home
directory's `.ssh/known_hosts`; this takes Windows paths into account by
preferring `HOME`, then falling back to `HOMEPATH` and `USERPROFILE`
directories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use `git_sysdir_find_homedir_file` to identify the path to the home
directory's `.ssh/known_hosts`; this takes Windows paths into account by
preferring `HOME`, then falling back to `HOMEPATH` and `USERPROFILE`
directories.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6435 from russell/capabilities-typo</title>
<updated>2023-01-20T22:30:57+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2023-01-20T22:30:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=d3f554fd67d0b2028705ecc41c79110c12b86776'/>
<id>d3f554fd67d0b2028705ecc41c79110c12b86776</id>
<content type='text'>
transport: fix capabilities calculation</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
transport: fix capabilities calculation</pre>
</div>
</content>
</entry>
<entry>
<title>Merge commit 'e33d7c068' into ssh_key_checking</title>
<updated>2023-01-20T22:13:14+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2023-01-20T22:13:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=3ee86a33292cbb8d43e0cf1442d0750c26fd61bb'/>
<id>3ee86a33292cbb8d43e0cf1442d0750c26fd61bb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>transport: fix capabilities calculation</title>
<updated>2022-11-25T18:11:54+00:00</updated>
<author>
<name>Russell Sim</name>
<email>rsl@simopolis.xyz</email>
</author>
<published>2022-11-25T18:11:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=be7356d0c6dca4154ae7b7f57c556d7b58b0d5f5'/>
<id>be7356d0c6dca4154ae7b7f57c556d7b58b0d5f5</id>
<content type='text'>
This looks like a typo to me, from what i can see these lines were
added at the same time and because of how capabilities are calculated,
it's likely that this code will work in situations where these
capabilities were the last ones.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This looks like a typo to me, from what i can see these lines were
added at the same time and because of how capabilities are calculated,
it's likely that this code will work in situations where these
capabilities were the last ones.
</pre>
</div>
</content>
</entry>
<entry>
<title>ssh: look for a key in known_hosts to set the key type for the handshake</title>
<updated>2022-11-04T09:33:55+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2022-11-02T12:47:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=e33d7c06887582540bee013665f88d9625eca46c'/>
<id>e33d7c06887582540bee013665f88d9625eca46c</id>
<content type='text'>
The server and client negotiate a single hostkey, but the "best" cipher may not
be the one for which we have an entry in `known_hosts`. This can lead to us not
finding the key in known_hosts even though we should be connecting.

Instead here we look up the hostname with a nonsense key to perform a lookup in
the known hosts and set that. This is roughly what the OpenSSH client does as
well.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The server and client negotiate a single hostkey, but the "best" cipher may not
be the one for which we have an entry in `known_hosts`. This can lead to us not
finding the key in known_hosts even though we should be connecting.

Instead here we look up the hostname with a nonsense key to perform a lookup in
the known hosts and set that. This is roughly what the OpenSSH client does as
well.
</pre>
</div>
</content>
</entry>
<entry>
<title>ssh: verify the remote's host key against known_hosts if it exists</title>
<updated>2022-11-02T09:44:56+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2022-11-01T11:54:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=74c2b4b8a62d2a6461b1535192e3c5e828f49c67'/>
<id>74c2b4b8a62d2a6461b1535192e3c5e828f49c67</id>
<content type='text'>
It turns out this has been available in libssh2 for a long time and we should
have been verifying this the whole time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It turns out this has been available in libssh2 for a long time and we should
have been verifying this the whole time.
</pre>
</div>
</content>
</entry>
<entry>
<title>http: Update httpclient options when reusing an existing connection.</title>
<updated>2022-10-20T01:04:56+00:00</updated>
<author>
<name>Sebastian Lackner</name>
<email>sebastian.lackner@sysmagine.com</email>
</author>
<published>2022-10-06T03:04:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f8683b7a93c54db3df510fbb8593082c2667bfcd'/>
<id>f8683b7a93c54db3df510fbb8593082c2667bfcd</id>
<content type='text'>
Httpclient internally stores a copy of the certificate_check callback and
payload. When connecting via HTTPS, and if the server sends back
"Connection: close" after the first request, the following request would
attempt to re-use the httpclient and call the (now outdated) callback. In
particular for pygit2 this is a problem, since callbacks / payloads are only
valid for the duration of a libgit2 call, leading to a ffi.from_handle()
error and crashing the Python interpreter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Httpclient internally stores a copy of the certificate_check callback and
payload. When connecting via HTTPS, and if the server sends back
"Connection: close" after the first request, the following request would
attempt to re-use the httpclient and call the (now outdated) callback. In
particular for pygit2 this is a problem, since callbacks / payloads are only
valid for the duration of a libgit2 call, leading to a ffi.from_handle()
error and crashing the Python interpreter.
</pre>
</div>
</content>
</entry>
<entry>
<title>winhttp: handle long custom headers</title>
<updated>2022-07-22T03:18:03+00:00</updated>
<author>
<name>Kevin Saul</name>
<email>kevinsaul@gmail.com</email>
</author>
<published>2022-07-22T03:18:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f5670326ffc7bd27e61b676df60f788c8f7106f1'/>
<id>f5670326ffc7bd27e61b676df60f788c8f7106f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>sha256: indirection for experimental functions</title>
<updated>2022-07-14T02:50:33+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2022-07-14T02:25:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=b43567d655b6fbc562a165095a6980d19c4ae278'/>
<id>b43567d655b6fbc562a165095a6980d19c4ae278</id>
<content type='text'>
The experimental function signature is only available when
`GIT_EXPERIMENTAL_SHA256` is enabled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The experimental function signature is only available when
`GIT_EXPERIMENTAL_SHA256` is enabled.
</pre>
</div>
</content>
</entry>
</feed>
