<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitano/libgit2.git/src/netops.c, branch replace-luagit2</title>
<subtitle>git.gitano.org.uk: libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/'/>
<entry>
<title>netops: error out on url without a path</title>
<updated>2014-08-05T00:07:32+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-07-03T00:34:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=0e594633aa7e323055f7c07fd00101727cc285ac'/>
<id>0e594633aa7e323055f7c07fd00101727cc285ac</id>
<content type='text'>
In order to connect to a remote server, we need to provide a path to the
repository we're interested in. Consider the lack of path in the url an
error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to connect to a remote server, we need to provide a path to the
repository we're interested in. Consider the lack of path in the url an
error.
</pre>
</div>
</content>
</entry>
<entry>
<title>ssl: init everything all the time</title>
<updated>2014-06-12T14:58:25+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-06-12T14:20:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=081e76bac26e1ed6adafb402d15b30c622866d61'/>
<id>081e76bac26e1ed6adafb402d15b30c622866d61</id>
<content type='text'>
Bring together all of the OpenSSL initialization to
git_threads_init() so it's together and doesn't need locks.

Moving it here also gives us libssh2 thread safety (when built against
openssl).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bring together all of the OpenSSL initialization to
git_threads_init() so it's together and doesn't need locks.

Moving it here also gives us libssh2 thread safety (when built against
openssl).
</pre>
</div>
</content>
</entry>
<entry>
<title>ssl: cargo-cult thread safety</title>
<updated>2014-06-12T12:37:03+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-06-12T01:20:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=cf15ac8aa96304a36699ae65398b7adac0d2ddde'/>
<id>cf15ac8aa96304a36699ae65398b7adac0d2ddde</id>
<content type='text'>
OpenSSL's tests init everything in the main thread, so let's do that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OpenSSL's tests init everything in the main thread, so let's do that.
</pre>
</div>
</content>
</entry>
<entry>
<title>ssl: use locking</title>
<updated>2014-06-11T21:19:48+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-06-11T21:19:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=5fa0494328b78a1ce8dba983c3f8028d123a62a4'/>
<id>5fa0494328b78a1ce8dba983c3f8028d123a62a4</id>
<content type='text'>
When using in a multithreaded context, OpenSSL needs to lock, and leaves
it up to application to provide said locks.

We were not doing this, and it's just luck that's kept us from crashing
up to now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using in a multithreaded context, OpenSSL needs to lock, and leaves
it up to application to provide said locks.

We were not doing this, and it's just luck that's kept us from crashing
up to now.
</pre>
</div>
</content>
</entry>
<entry>
<title>netops: init OpenSSL once under lock</title>
<updated>2014-06-11T18:54:42+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-06-11T18:52:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=1d3364ac9d2bcd2d194f0afa0d301456d0d4e276'/>
<id>1d3364ac9d2bcd2d194f0afa0d301456d0d4e276</id>
<content type='text'>
The OpenSSL init functions are not reentrant, which means that running
multiple fetches in parallel can cause us to crash.

Use a mutex to init OpenSSL, and since we're adding this extra checks,
init it only once.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The OpenSSL init functions are not reentrant, which means that running
multiple fetches in parallel can cause us to crash.

Use a mutex to init OpenSSL, and since we're adding this extra checks,
init it only once.
</pre>
</div>
</content>
</entry>
<entry>
<title>Win32 fix for #2300.</title>
<updated>2014-05-13T03:51:03+00:00</updated>
<author>
<name>Albert Meltzer</name>
<email>kitbellew@users.noreply.github.com</email>
</author>
<published>2014-05-13T03:25:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=7c57cd97d814a39829a6b6e03473e693ea4df602'/>
<id>7c57cd97d814a39829a6b6e03473e693ea4df602</id>
<content type='text'>
The code doesn't use SSL and a test requires it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code doesn't use SSL and a test requires it.
</pre>
</div>
</content>
</entry>
<entry>
<title>netops: catch the server not sending a certificate</title>
<updated>2014-04-26T15:27:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-04-26T12:36:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=783555d8e11516fdc01b66da0f873f5854b9bff6'/>
<id>783555d8e11516fdc01b66da0f873f5854b9bff6</id>
<content type='text'>
It's possible for an encrypted connection not have a certificate. In
this case, SSL_get_verify_result() will return OK because no error
happened (as it never even tried to validate anything).

SSL_get_peer_certificate() will return NULL in this case so we need to
catch that. On the upside, the current code would segfault in this
situation instead of letting it through as a valid cert.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's possible for an encrypted connection not have a certificate. In
this case, SSL_get_verify_result() will return OK because no error
happened (as it never even tried to validate anything).

SSL_get_peer_certificate() will return NULL in this case so we need to
catch that. On the upside, the current code would segfault in this
situation instead of letting it through as a valid cert.
</pre>
</div>
</content>
</entry>
<entry>
<title>netops: provide more specific error for cert failure</title>
<updated>2014-04-26T15:27:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-04-26T12:16:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=51d3f6f5f2f9dc6c9f9dd64d3ccbd0afdcf6fb6e'/>
<id>51d3f6f5f2f9dc6c9f9dd64d3ccbd0afdcf6fb6e</id>
<content type='text'>
Specify what we do not like about the certificate. In this case, we do
not like the name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specify what we do not like about the certificate. In this case, we do
not like the name.
</pre>
</div>
</content>
</entry>
<entry>
<title>netops: unit-test the cert host-name pattern matching</title>
<updated>2014-04-26T15:27:42+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-04-26T11:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=1f0d4f3d8dd5c87d3f42a913a1af9d6f1f2da437'/>
<id>1f0d4f3d8dd5c87d3f42a913a1af9d6f1f2da437</id>
<content type='text'>
This kind of stuff should have unit tests, even if it's just to show
what we expect to match successfully.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This kind of stuff should have unit tests, even if it's just to show
what we expect to match successfully.
</pre>
</div>
</content>
</entry>
<entry>
<title>netops: fix leak</title>
<updated>2013-11-18T20:40:19+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2013-11-18T20:40:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitano/libgit2.git/commit/?id=e1ce5249e52e9c5271727d7e2ef5bba4c45277b9'/>
<id>e1ce5249e52e9c5271727d7e2ef5bba4c45277b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
