Skip to content

TLSv1.3 PSK binders: always use id protection#10534

Merged
douzzer merged 1 commit into
wolfSSL:masterfrom
SparkiDev:tls13_psk_id_fix
Jun 5, 2026
Merged

TLSv1.3 PSK binders: always use id protection#10534
douzzer merged 1 commit into
wolfSSL:masterfrom
SparkiDev:tls13_psk_id_fix

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

Removed WOLFSSL_PSK_ID_PROTECTION from use as it is now on by default. Always check whether the server has a certificate (not a CA chain). If there is a certificate then continue, otherwise, report a binder error.

Added test to ensure binder error returned and alert sent when no NO_CERT. test_tls13_bad_psk_binder already tested no certificate.

Allowed memio test harness to be built when NO_CERT is defined.

Fixes #10195

Testing

./configure --disable-shared --enable-psk --enable-session-ticket
./configure --disable-shared --disable-rsa --disable-ecc --enable-session-ticket

@SparkiDev
Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10534

Scan targets checked: wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src

Findings: 3
3 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread src/tls13.c Outdated
Comment thread tests/utils.h
Comment thread tests/api/test_tls13.c Outdated
Removed WOLFSSL_PSK_ID_PROTECTION from use as it is now on by default.
Always check whether the server has a certificate (not a CA chain).
If there is a certificate then continue, otherwise, report a binder
error.

Added test to ensure binder error returned and alert sent when no
NO_CERT. test_tls13_bad_psk_binder already tested no certificate.

Allowed memio test harness to be built when NO_CERT is defined.
@SparkiDev
Copy link
Copy Markdown
Contributor Author

SparkiDev commented Jun 5, 2026

Jenkins: retest this please

FIPS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

MemBrowse Memory Report

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .text +64 B (+0.0%, 764,756 B / 1,048,576 B, total: 73% used)

gcc-arm-cortex-m4-pq

  • FLASH: .text +64 B (+0.0%, 276,184 B / 1,048,576 B, total: 26% used)

gcc-arm-cortex-m7-pq

@douzzer douzzer merged commit f8f1e93 into wolfSSL:master Jun 5, 2026
495 of 496 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Distinguishable PSK Identity vs Binder Failures in TLS 1.3 Default Configuration

4 participants