Commit Graph

17 Commits (f112ced76f72ed65645b59ee13114d21039254fc)

Author SHA1 Message Date
Kareem a69521afa4 Update license from GPLv2 to GPLv3. 2026-07-20 10:37:26 -07:00
Juliusz Sosinowicz 89f038ab7c Use getaddrinfo to detect IP literals in client example
socket.inet_pton() is missing on some supported platforms (Python 2.7
on Windows). getaddrinfo() with AI_NUMERICHOST parses without
resolving and is available everywhere. It also handles scoped IPv6
literals.
2026-07-13 17:53:14 +00:00
Juliusz Sosinowicz 56e3297edd Skip hostname check for IP literal hosts in client example
Review follow-up for F-5621. wolfSSL_check_domain_name() only matches
DNS names: on this path CheckForAltNames() is called with isIP=0, so
iPAddress SANs are always skipped (verified on v5.8.4-stable and
master). The default invocation (host 127.0.0.1) therefore failed the
handshake with DOMAIN_NAME_MISMATCH (-322) once hostname verification
was enabled by default.

Skip the hostname check for IP literal hosts and say so, keeping
CERT_REQUIRED verification. This also stops offering an IP literal in
SNI, which RFC 6066 forbids. Connecting by DNS name still enables the
hostname check.

Add unit tests for the IP literal paths and an end-to-end test that
runs server.py and client.py with default arguments.
2026-07-13 17:35:04 +00:00
Juliusz Sosinowicz 9c26572a41 Enable hostname verification in client example (F-5621)
The client example set CERT_REQUIRED and loaded CA roots but never set
check_hostname or passed server_hostname to wrap_socket, so wolfSSL
validated the chain to a trusted CA without binding the certificate to
the requested host. A peer presenting any CA-trusted certificate for a
different hostname would be accepted by anyone reusing this as a secure
client template. Make verification configure hostname checking by
default (via a new configure_verification helper) and add a -n flag to
opt out explicitly for IP literals or test certificates.
2026-06-24 12:26:37 +00:00
Jeremiah Mackey 7a1c3b0885 Guard shutdowns and clean up code 2026-04-14 17:10:36 +00:00
Jeremiah Mackey 2c4ba3c8d7 Fix low-severity issues 2026-04-02 16:32:27 +00:00
Jeremiah Mackey dc49a5391f Default DTLS version in client example 2026-04-02 15:44:07 +00:00
Lealem Amedie 1f88948c51 Adding DTLS13 support 2022-08-29 23:00:52 -07:00
Lealem Amedie e26560bf55 Adding DTLS support 2022-08-29 23:00:52 -07:00
Lealem Amedie 8117569866 Adding CRL support 2022-08-29 23:00:52 -07:00
Andrew Hutchings 56188c2814 Fix help number 2022-07-15 11:19:43 +01:00
Andrew Hutchings 9d22a85445 Fix TLSv1.3 support
There were some missing pieces to the TLSv1.3 support, this adds them in
along with tests.
2022-07-15 11:07:43 +01:00
Chris Conlon 032f2e0167 update copyright to 2020 2020-01-03 16:24:35 -08:00
Chris Conlon d26781d774 enable debugging in example client/server if compiled in 2018-12-31 09:02:33 -08:00
Chris Conlon e32799a5ed update copyright dates to 2019 2018-12-31 08:31:48 -08:00
Moisés Guimarães 85ac434af3 adds support to tls 1.3 2018-01-27 20:51:32 +01:00
Moisés Guimarães 2b0cf67545 moving files from wolfssl/wrapper/python/wolfssl to here 2017-12-19 13:55:23 -03:00