Skip to content

Add example of certificate + PSK auth. - #621

Open
anhu wants to merge 2 commits into
wolfSSL:masterfrom
anhu:psk_with_cert
Open

anhu wants to merge 2 commits into
wolfSSL:masterfrom
anhu:psk_with_cert

Conversation

@anhu

@anhu anhu commented Aug 27, 2026

Copy link
Copy Markdown
Member

Fixes ZD 22369

@anhu anhu assigned anhu and wolfSSL-Bot and unassigned wolfSSL-Bot and anhu Aug 27, 2026
@philljj
philljj requested review from philljj and wolfSSL-Fenrir-bot and removed request for wolfSSL-Bot September 18, 2026 19:12

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #621

Scan targets checked: wolfssl-examples-src, wolfssl-examples-bugs

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

This review was generated automatically by Fenrir. Reported findings require changes before merge.

#include <netinet/in.h>
#include <unistd.h>

#ifdef HAVE_SIGNAL

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SIGINT cleanup handler is never compiled in (HAVE_SIGNAL never defined) · Dead/unreachable code

Unlike every sibling server example, this file omits #define HAVE_SIGNAL before the guard, so signal.h, sig_handler (lines 94-109), and the signal(SIGINT, sig_handler) call at line 129 are all excluded from every build and Ctrl-C never runs the socket cleanup path. If HAVE_SIGNAL is supplied by wolfssl/options.h (included at line 50, after the guard), signal.h is still not pulled in and line 129 fails to compile.

Suggested fix: Add #define HAVE_SIGNAL immediately before the #ifdef HAVE_SIGNAL include guard, matching tls/server-tls13.c.

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.

3 participants