Skip to content

3GPP TS 33102 V16.0.0(2020-07) allows greater length of authentication parameters #4413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wosrediinanatour opened this issue Apr 30, 2025 · 0 comments · Fixed by #4414
Closed

Comments

@wosrediinanatour
Copy link
Contributor

wosrediinanatour commented Apr 30, 2025

Describe the bug

For Digest Authentication of an PJSUA(2) account during registration process, if the password is > 16 characters, then registration will fail without any error message.

Steps to reproduce

Use an authentication key (K) in https://docs.pjsip.org/en/latest/api/generated/pjsip/group/group__PJSUA2__SIP__Types.html#_CPPv4N2pj12AuthCredInfo4akaKE with a length > 16 characters and try to register using Digest Authentication:

auto auth = pj::AuthCredInfo("Digest", realm, username, PJSIP_CRED_DATA_EXT_AKA , 0);
auth.akaK = password;
config.sipConfig.authCreds.push_back(std::move(auth));  // config is of type pj::AccountConfig. config is used when creating an account.

PJSIP version

2.14.1, 2.15

Context

Latest version of the standard supports the following lengths of authentication parameters:

Image

The length of the authentication key (K) has changed over time.

Log, call stack, etc

Registration fails silently, when a SIP 401 is received after the initial unprotected SIP REGISTER had been sent.
wosrediinanatour added a commit to wosrediinanatour/pjproject that referenced this issue Apr 30, 2025
The length of the authentication key (K) has changed since the
implementation of Digest Authentication.

Issue: pjsip#4413
@sauwming sauwming linked a pull request May 1, 2025 that will close this issue
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 a pull request may close this issue.

1 participant