<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/libgit2/transports/ssh.c, branch main</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>net: move `gitno` buffer to `staticstr`</title>
<updated>2023-05-13T15:42:04+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2023-05-12T19:48:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=11c89c386c8862f834097cdc5d9ed79634cf00f3'/>
<id>11c89c386c8862f834097cdc5d9ed79634cf00f3</id>
<content type='text'>
The `gitno` buffer interface is another layer on top of socket reads.
Abstract it a bit into a "static string" that has `git_str` like
semantics but without heap allocation which moves the actual reading
logic into the socket / stream code, and allows for easier future usage
of a static / stack-allocated `git_str`-like interface.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `gitno` buffer interface is another layer on top of socket reads.
Abstract it a bit into a "static string" that has `git_str` like
semantics but without heap allocation which moves the actual reading
logic into the socket / stream code, and allows for easier future usage
of a static / stack-allocated `git_str`-like interface.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Pass hostkey &amp; port to host verify callback"</title>
<updated>2023-02-27T20:37:50+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2023-02-27T20:37:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=5adde383153af033d22bf25c443e6e7f6f08d0bd'/>
<id>5adde383153af033d22bf25c443e6e7f6f08d0bd</id>
<content type='text'>
This reverts commit f68b40c0af9c7c5c2c8740fe4a8fbcba367e0087.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit f68b40c0af9c7c5c2c8740fe4a8fbcba367e0087.
</pre>
</div>
</content>
</entry>
<entry>
<title>Pass hostkey &amp; port to host verify callback</title>
<updated>2023-02-24T21:11:58+00:00</updated>
<author>
<name>Francois-Xavier Coudert</name>
<email>fxcoudert@gmail.com</email>
</author>
<published>2023-02-24T10:05:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f68b40c0af9c7c5c2c8740fe4a8fbcba367e0087'/>
<id>f68b40c0af9c7c5c2c8740fe4a8fbcba367e0087</id>
<content type='text'>
Co-authored-by: Stefan Karpinski &lt;stefan@karpinski.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Stefan Karpinski &lt;stefan@karpinski.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: parse urls or scp style paths in the same function</title>
<updated>2023-02-24T21:11:58+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@vercel.com</email>
</author>
<published>2023-02-24T17:29:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=c2bdef6f3a16ca5c4ea32444b28772046da881a5'/>
<id>c2bdef6f3a16ca5c4ea32444b28772046da881a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make failure to connect to ssh-agent non-fatal</title>
<updated>2023-02-22T09:53:23+00:00</updated>
<author>
<name>Francois-Xavier Coudert</name>
<email>fxcoudert@gmail.com</email>
</author>
<published>2023-02-22T09:52:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=d286952f9e8fce847404f2651e4e341dd33e96eb'/>
<id>d286952f9e8fce847404f2651e4e341dd33e96eb</id>
<content type='text'>
Fixes https://github.com/libgit2/libgit2/issues/3866

Has been applied in all Julia builds since 2017:
https://github.com/JuliaLang/julia/pull/17459

Authored-by: Keno Fischer &lt;kfischer@college.harvard.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/libgit2/libgit2/issues/3866

Has been applied in all Julia builds since 2017:
https://github.com/JuliaLang/julia/pull/17459

Authored-by: Keno Fischer &lt;kfischer@college.harvard.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Set all SSH hostkey preferences that are available</title>
<updated>2023-02-09T12:25:04+00:00</updated>
<author>
<name>Eric Huss</name>
<email>eric@huss.org</email>
</author>
<published>2023-02-04T20:17:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=e0220e6a222b056ab44d68f41a62012077d2a3f3'/>
<id>e0220e6a222b056ab44d68f41a62012077d2a3f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>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>
</feed>
