Skip to content

psk_server_cb in s_server returns 0 for DTLS because of invalid SSL version detection. #16707

@Sean-Der

Description

@Sean-Der

When running a DTLS 1.2 Server the call to SSL_version here returns 0xFEFD. This causes the callback to return 0.

I am running the DTLS Server like so

openssl s_server -dtls1_2 -quiet -verify_quiet -verify_return_error -accept=52970 -cipher=PSK-AES128-GCM-SHA256 -psk=ABC123 -psk_hint=ABCD -nocert

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 1.1.1Applies to OpenSSL_1_1_1-stable branch (EOL)branch: 3.0Applies to openssl-3.0 branchbranch: masterApplies to master branchtriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions