<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libtls/tls_conninfo.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2026-03-28T11:33:33+00:00</updated>
<entry>
<title>libtls: simple cases of const for X509_NAME *</title>
<updated>2026-03-28T11:33:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-03-28T11:33:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cb80f3489708580ad1f1d4b027d1c0b23fa3f15a'/>
<id>urn:sha1:cb80f3489708580ad1f1d4b027d1c0b23fa3f15a</id>
<content type='text'>
After the const sprinkling in OpenSSL 1.1, X509_get_{issuer,subject}_name()
still returned a non-const pointer for unclear reasons. In OpenSSL 4,
the return value also grew a const qualifier, so move the two "name" in
tls_conninfo.c and the "subject_name" in tls_verify.c to const. They are
only used for further processing by already const correct functions (at
least as far as X509_NAME is concerned).

ok djm jsing kenjiro
</content>
</entry>
<entry>
<title>Provide tls_peer_cert_common_name()</title>
<updated>2024-12-10T08:40:30+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-12-10T08:40:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d3da05396af6da5d0c94da0425031aa4fd529ac9'/>
<id>urn:sha1:d3da05396af6da5d0c94da0425031aa4fd529ac9</id>
<content type='text'>
There is currently no sane way of getting your hands on the common name or
subject alternative name of the peer certificate from libtls. It is possible
to extract it from the peer cert's PEM by hand, but that way lies madness.
While the common name is close to being deprecated in the webpki, it is
still the de facto standard to identify client certs. It would be nice to
have a way to access the subject alternative names as well, but this is a
lot more difficult to expose in a clean and sane C interface due to its
multivaluedness.

Initial diff from henning, with input from beck, jsing and myself
henning and bluhm have plans of using this in syslogd.

ok beck
</content>
</entry>
<entry>
<title>Fix previous commit.</title>
<updated>2024-03-26T06:31:22+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-03-26T06:31:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e382a20db9324b738a67c68ab2ca9180ad743fc6'/>
<id>urn:sha1:e382a20db9324b738a67c68ab2ca9180ad743fc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add error code support to libtls</title>
<updated>2024-03-26T06:24:52+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T06:24:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bd68c6e1694d8d4eb801f32889da4cdde0b3c311'/>
<id>urn:sha1:bd68c6e1694d8d4eb801f32889da4cdde0b3c311</id>
<content type='text'>
This adds tls_config_error_code() and tls_error_code(), which will become
public API at a later date.

Additional error codes will be added in follow-up commits.

ok jsing@ beck@
</content>
</entry>
<entry>
<title>Convert libressl to use the BoringSSL style time conversions</title>
<updated>2024-03-24T11:30:12+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-03-24T11:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca'/>
<id>urn:sha1:0f167a53fa3e19b7e6bb0620e16c6d11f07f10ca</id>
<content type='text'>
This gets rid of our last uses of timegm and gmtime in the
library and things that ship with it. It includes a bit
of refactoring in ocsp_cl.c to remove some obvious ugly.

ok tb@
</content>
</entry>
<entry>
<title>Remove ASN1_time_parse() dependency in tls_conninfo.c</title>
<updated>2023-11-13T10:51:49+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-13T10:51:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f3a0b367152681ccbb4de822d60575d8e43d9522'/>
<id>urn:sha1:f3a0b367152681ccbb4de822d60575d8e43d9522</id>
<content type='text'>
During r2k22 ported some of the missing OpenSSL ASN.1 time API. This is
a step towards removing the dependency of libtls on ASN1_time_parse().
The latter grew a dependency on CBS/CBB, and thus the choice is to pull
in all this code or to use a no longer maintained version of the API.
Both options are unappealing.

ok beck
</content>
</entry>
<entry>
<title>add missing #include &lt;string.h&gt;; ok tb@</title>
<updated>2023-05-14T07:26:25+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2023-05-14T07:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=751c792967481bc8add0d09d060248a9d59cfadf'/>
<id>urn:sha1:751c792967481bc8add0d09d060248a9d59cfadf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove memset that was made redundant with the ASN1_time_parse()</title>
<updated>2021-01-05T15:57:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-01-05T15:57:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c2affb92204dca1446bbdf5b7404fda1dc41e2c2'/>
<id>urn:sha1:c2affb92204dca1446bbdf5b7404fda1dc41e2c2</id>
<content type='text'>
fix in libcrypto/asn1/a_time_tm.c r1.16.

Suggested by jsing
</content>
</entry>
<entry>
<title>Provide tls_conn_cipher_strength().</title>
<updated>2019-11-02T13:37:59+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2019-11-02T13:37:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=914deddb0bc7631f9603d3f22c07d8b3b6031d80'/>
<id>urn:sha1:914deddb0bc7631f9603d3f22c07d8b3b6031d80</id>
<content type='text'>
This returns the strength in bits of the symmetric cipher used for the
connection.

Diff from gilles@

ok tb@
</content>
</entry>
<entry>
<title>Tidy/standardise some code.</title>
<updated>2018-02-10T04:48:44+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-02-10T04:48:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0865717e89a23608e9e870a932e575c2eee93965'/>
<id>urn:sha1:0865717e89a23608e9e870a932e575c2eee93965</id>
<content type='text'>
</content>
</entry>
</feed>
