<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libtls/tls_internal.h, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-12-10T08:40:30+00:00</updated>
<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>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>Use errno_value instead of num for readability</title>
<updated>2024-03-26T00:50:22+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T00:50:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ebb5d184382e45fee186dab409ffc48de54983b6'/>
<id>urn:sha1:ebb5d184382e45fee186dab409ffc48de54983b6</id>
<content type='text'>
ok beck@ jsing@
</content>
</entry>
<entry>
<title>Zap stray space</title>
<updated>2023-06-27T18:19:59+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-06-27T18:19:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0fbd7fe654d8ec5bc487af1a7412d3c479b48fa6'/>
<id>urn:sha1:0fbd7fe654d8ec5bc487af1a7412d3c479b48fa6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libtls: switch ECDSA_METHOD usage to EC_KEY_METHOD</title>
<updated>2023-06-18T11:43:03+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2023-06-18T11:43:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d4df7cddd1d4ded9778f0ab6b2c234b2d54515c3'/>
<id>urn:sha1:d4df7cddd1d4ded9778f0ab6b2c234b2d54515c3</id>
<content type='text'>
smtpd and the bits it needs in libtls are the only consumer left of
ECDSA_METHOD, which is long deprecated.  This paves the way for the
removal in libcrypto.

The diff is from gilles' work on OpenSMTPD-portable, libretls had a
similar diff.

ok tb@, jsing@
</content>
</entry>
<entry>
<title>Drop X9.31 support from libtls</title>
<updated>2023-04-09T18:26:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-09T18:26:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f5072cf9562fff0cb2416b6d99a9975b34d4bbf3'/>
<id>urn:sha1:f5072cf9562fff0cb2416b6d99a9975b34d4bbf3</id>
<content type='text'>
The TLS signer isn't exposed in public API (we should finally fix it...)
and it supports X9.31, a standard that has been retired and deprecated for
a very long time. libcrypto will stop supporting it soon, this step is
needed to prepare userland.

ok jsing
</content>
</entry>
<entry>
<title>Hide the tls_signer from public visibility. It's not ready yet and</title>
<updated>2022-03-24T15:56:34+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-03-24T15:56:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3ec89a9ed2faefa8b6b6deaf561a2a72744e1335'/>
<id>urn:sha1:3ec89a9ed2faefa8b6b6deaf561a2a72744e1335</id>
<content type='text'>
should not be used. It will be revisited after release.

ok beck inoguchi jsing
</content>
</entry>
<entry>
<title>Introduce a signer interface intented to make TLS privsep simpler</title>
<updated>2022-01-25T21:51:24+00:00</updated>
<author>
<name>eric</name>
<email></email>
</author>
<published>2022-01-25T21:51:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bff2f4430c3c0f9cc4584883118372ffbdcbd1e6'/>
<id>urn:sha1:bff2f4430c3c0f9cc4584883118372ffbdcbd1e6</id>
<content type='text'>
to implement.

Add a tls_config_set_sign_cb() function that allows to register
a callback for the signing operation on a tls_config. When used,
the context installs fake pivate keys internally, and the callback
receives the hash of the public key.

Add a tls_signer_*() set of functions to manage tls_signer objects.
A tls_signer is an opaque structure on which keys are added.
It is used to compute signatures with private keys identified by
their associated public key hash.

Discussed with and ok jsing@ tb@
</content>
</entry>
<entry>
<title>Allow setting a keypair on a tls context without specifying the private</title>
<updated>2021-01-21T19:09:10+00:00</updated>
<author>
<name>eric</name>
<email></email>
</author>
<published>2021-01-21T19:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d2ab351fe9c988b44fe7daa9c749b02330249121'/>
<id>urn:sha1:d2ab351fe9c988b44fe7daa9c749b02330249121</id>
<content type='text'>
key, and fake it internally with the certificate public key instead.
It makes it easier for privsep engines like relayd that don't have to
use bogus keys anymore.

ok beck@ tb@ jsing@
</content>
</entry>
<entry>
<title>Allow 1.3 ciphers in libtls.</title>
<updated>2019-11-16T21:39:52+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2019-11-16T21:39:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=da504cd806978b7bc31863fbdc28c3463abe3348'/>
<id>urn:sha1:da504cd806978b7bc31863fbdc28c3463abe3348</id>
<content type='text'>
ok jsing@
</content>
</entry>
</feed>
