Skip to content
Success

#22173 (Jun 17, 2026, 1:52:12 PM)

Started 2 days 8 hr ago
Took 34 sec on build5-deb12build-ansible

Started by upstream project gerrit-osmo-pcap build number 239
originally caused by:

This run spent:

  • 36 sec waiting;
  • 34 sec build duration;
  • 1 min 11 sec total from scheduled to completion.
Revision: 85952f14fc87f877fefcea9d7cc72461a5cc4cfe
Repository: $GERRIT_REPO_URL
  • master
tls: fix broken certificate hostname verification

verify_cert_cb() retrieved the gnutls session pointer and passed it to
gnutls_certificate_verify_peers3() as the expected hostname.  But the
session pointer is set to the osmo_tls_session struct (it is needed by
cert_callback()), not a hostname string.  Hostname matching was
therefore performed against raw struct bytes, rendering verification
meaningless and potentially reading out of bounds, even when
"tls verify-cert" was enabled.

Store the configured hostname in struct osmo_tls_session and have
verify_cert_cb() read it from there.  Also drop the stray
gnutls_certificate_verify_peers3() call in the client setup: it ran
before any handshake (so there were no peer certificates yet) and its
result was ignored; the real verification happens via the registered
callback during the handshake.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Change-Id: If64950a698bfcfbf556a37ef1be3e68abc124384
Vadim Yanitskiy at