<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/netops.h, branch ethomson/proxy</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>netops: add method to return default http port for a connection</title>
<updated>2018-11-09T19:41:29+00:00</updated>
<author>
<name>Rick Altherr</name>
<email>kc8apf@kc8apf.net</email>
</author>
<published>2018-11-08T17:31:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=58b60fccc12737a436ec6780dc1598467c8f5d2f'/>
<id>58b60fccc12737a436ec6780dc1598467c8f5d2f</id>
<content type='text'>
Constant strings and logic for HTTP(S) default ports were starting to be
spread throughout netops.c.  Instead of duplicating this again to
determine if a Host header should include the port, move the default
port constants and logic into an internal method in netops.{c,h}.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Constant strings and logic for HTTP(S) default ports were starting to be
spread throughout netops.c.  Instead of duplicating this again to
determine if a Host header should include the port, move the default
port constants and logic into an internal method in netops.{c,h}.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make sure to always include "common.h" first</title>
<updated>2017-07-03T08:51:48+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-06-30T11:39:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=0c7f49dd4316b332f30b4ea72a657bace41e1245'/>
<id>0c7f49dd4316b332f30b4ea72a657bace41e1245</id>
<content type='text'>
Next to including several files, our "common.h" header also declares
various macros which are then used throughout the project. As such, we
have to make sure to always include this file first in all
implementation files. Otherwise, we might encounter problems or even
silent behavioural differences due to macros or defines not being
defined as they should be. So in fact, our header and implementation
files should make sure to always include "common.h" first.

This commit does so by establishing a common include pattern. Header
files inside of "src" will now always include "common.h" as its first
other file, separated by a newline from all the other includes to make
it stand out as special. There are two cases for the implementation
files. If they do have a matching header file, they will always include
this one first, leading to "common.h" being transitively included as
first file. If they do not have a matching header file, they instead
include "common.h" as first file themselves.

This fixes the outlined problems and will become our standard practice
for header and source files inside of the "src/" from now on.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Next to including several files, our "common.h" header also declares
various macros which are then used throughout the project. As such, we
have to make sure to always include this file first in all
implementation files. Otherwise, we might encounter problems or even
silent behavioural differences due to macros or defines not being
defined as they should be. So in fact, our header and implementation
files should make sure to always include "common.h" first.

This commit does so by establishing a common include pattern. Header
files inside of "src" will now always include "common.h" as its first
other file, separated by a newline from all the other includes to make
it stand out as special. There are two cases for the implementation
files. If they do have a matching header file, they will always include
this one first, leading to "common.h" being transitively included as
first file. If they do not have a matching header file, they instead
include "common.h" as first file themselves.

This fixes the outlined problems and will become our standard practice
for header and source files inside of the "src/" from now on.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename GIT_SSL to GIT_OPENSSL</title>
<updated>2015-04-23T15:39:51+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-03-19T08:55:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=24e53d2fba1ea10c27c3b19f202dc92cabedf0ed'/>
<id>24e53d2fba1ea10c27c3b19f202dc92cabedf0ed</id>
<content type='text'>
This is what it's meant all along, but now we actually have multiple
implementations, it's clearer to use the name of the library.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is what it's meant all along, but now we actually have multiple
implementations, it's clearer to use the name of the library.
</pre>
</div>
</content>
</entry>
<entry>
<title>gitno: remove code which is no longer needed</title>
<updated>2014-12-10T00:39:09+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-11-02T10:17:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=1b75c29e3e175ad3ef4bc91a779b851dc76b9e09'/>
<id>1b75c29e3e175ad3ef4bc91a779b851dc76b9e09</id>
<content type='text'>
Most of the network-facing facilities have been copied to the socket and
openssl streams. No code now uses these functions directly anymore, so
we can now remove them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most of the network-facing facilities have been copied to the socket and
openssl streams. No code now uses these functions directly anymore, so
we can now remove them.
</pre>
</div>
</content>
</entry>
<entry>
<title>Port the TCP transport to the new stream API</title>
<updated>2014-12-10T00:39:09+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-11-01T15:58:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=02b4c1e2a426404ad7cad8e8a114f7f36bdb8b59'/>
<id>02b4c1e2a426404ad7cad8e8a114f7f36bdb8b59</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2575 from cirosantilli/factor-struct-typedef</title>
<updated>2014-10-10T16:06:36+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-10-10T16:06:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=bab92a8dcf66d93afb41c946c238841df74fff0e'/>
<id>bab92a8dcf66d93afb41c946c238841df74fff0e</id>
<content type='text'>
[factor] Join typedef and struct definitions in single file.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[factor] Join typedef and struct definitions in single file.</pre>
</div>
</content>
</entry>
<entry>
<title>Join typedef and struct definitions in single file.</title>
<updated>2014-09-24T09:00:51+00:00</updated>
<author>
<name>Ciro Santilli</name>
<email>ciro.santilli@gmail.com</email>
</author>
<published>2014-09-18T09:53:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=062804570c3e25170b52f849da173f8266b5e33e'/>
<id>062804570c3e25170b52f849da173f8266b5e33e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>net: remove support for outright ignoring certificates</title>
<updated>2014-09-16T15:01:32+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-09-11T08:04:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=41698f22f683d3452ef83de3b3e82f5cb178b0b3'/>
<id>41698f22f683d3452ef83de3b3e82f5cb178b0b3</id>
<content type='text'>
This option make it easy to ignore anything about the server we're
connecting to, which is bad security practice. This was necessary as we
didn't use to expose detailed information about the certificate, but now
that we do, we should get rid of this.

If the user wants to ignore everything, they can still provide a
callback which ignores all the information passed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This option make it easy to ignore anything about the server we're
connecting to, which is bad security practice. This was necessary as we
didn't use to expose detailed information about the certificate, but now
that we do, we should get rid of this.

If the user wants to ignore everything, they can still provide a
callback which ignores all the information passed.
</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/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>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/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>
</feed>
