Skip to content

Compiling failing when WOLFSSH_NO_NISTP256_MLKEM768_SHA256 is defined. #886

Closed

Description

@tjko

I noticed that if WOLFSSH_NO_NISTP256_MLKEM768_SHA256 is defined but WOLFSSH_NO_CURVE25519_MLKEM768_SHA256 is not defined (when one wants to only use "mlkem768x25519-sha256" algorithm), compiling of wolfSSH is failing:

/home/tjko/git/fanpico/libs/wolfssh-dev/src/internal.c: In function 'SendKexDhReply':
/home/tjko/git/fanpico/libs/wolfssh-dev/src/internal.c:12560:25: error: 'MSGID_KEXKEM_REPLY' undeclared (first use in this function); did you mean 'MSGID_KEXDH_REPLY'?
12560 |                 msgId = MSGID_KEXKEM_REPLY;
      |                         ^~~~~~~~~~~~~~~~~~
      |                         MSGID_KEXDH_REPLY
/home/tjko/git/fanpico/libs/wolfssh-dev/src/internal.c:12560:25: note: each undeclared identifier is reported only once for each function it appears in
/home/tjko/git/fanpico/libs/wolfssh-dev/src/internal.c: In function 'SendKexDhInit':
/home/tjko/git/fanpico/libs/wolfssh-dev/src/internal.c:13166:21: error: 'MSGID_KEXKEM_INIT' undeclared (first use in this function); did you mean 'MSGID_KEXDH_INIT'?
13166 |             msgId = MSGID_KEXKEM_INIT;
      |                     ^~~~~~~~~~~~~~~~~
      |                     MSGID_KEXDH_INIT

Activity

  1. ejohnstown commented on Mar 5, 2026

    @ejohnstown
    Contributor

    This is a guard check I've been thinking of removing. There's plenty of other guarded features whose message IDs are in that list. Those message IDs in particular are duplicates. They just look right reading them in the code that sends messages.

  2. tjko commented on Mar 6, 2026

    @tjko
    ContributorAuthor

    @ejohnstown, PR updated to remove the guard checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions