diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..a3b6cf0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,22 @@ +# Change Log + +All notable changes to this project will be documented in this file. + +Group changes to describe their impact on the project, as follows: + +| **Group name** | **Description** | +| ---------- | ----------------------------------------------------- | +| Added | New features | +| Changed | Changes in existing functionality | +| Deprecated | Once-stable features removed in upcoming releases | +| Removed | Deprecated features removed in this release | +| Fixed | Any bug fixes | +| Security | To invite users to upgrade in case of vulnerabilities | + + +As of now, since Flexisip-account-amanger doesn't have a release yet, changes will be listed by build number. + +## Build 32 - 2020-10-16 + +### [Fixed] + - 401 Unauthorized when trying to use provisioning with SHA-256 digest auth ('SHA256' typo) diff --git a/flexisip-account-manager.spec b/flexisip-account-manager.spec index 2e6bce4..4b0c222 100644 --- a/flexisip-account-manager.spec +++ b/flexisip-account-manager.spec @@ -8,7 +8,7 @@ #%define _datadir %{_datarootdir} #%define _docdir %{_datadir}/doc -%define build_number 31 +%define build_number 32 %define var_dir /var/opt/belledonne-communications %define opt_dir /opt/belledonne-communications/share/flexisip-account-manager %define env_file "$RPM_BUILD_ROOT/etc/flexisip-account-manager/flexiapi.env" diff --git a/src/xmlrpc/authentication.php b/src/xmlrpc/authentication.php index 3f1b18b..301e8ad 100644 --- a/src/xmlrpc/authentication.php +++ b/src/xmlrpc/authentication.php @@ -91,7 +91,7 @@ function authenticate($auth_digest, $realm = "sip.example.org") $A2 = md5(getenv('REQUEST_METHOD').':'.$data['uri']); $valid_response = md5($A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2); break; - case 'SHA256': + case 'SHA-256': $A1 = $password; // username:realm:password $A2 = hash('sha256', getenv('REQUEST_METHOD').':'.$data['uri']); $valid_response = hash('sha256', $A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2);