Hoernchen has submitted this change. (
https://gerrit.osmocom.org/c/pysim/+/43562?usp=email )
(
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted
one.
)Change subject: osmo-smdpp: case insensitive comp of ES9+ SM-DP+ address
......................................................................
osmo-smdpp: case insensitive comp of ES9+ SM-DP+ address
Do what the comment above the line already says..
Change-Id: Ie0738e810572ea3312c885ec8aaa2da4b8b12cd7
---
M osmo-smdpp.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
dexter: Looks good to me, approved
laforge: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index f19d3e5..024e861 100755
--- a/osmo-smdpp.py
+++ b/osmo-smdpp.py
@@ -525,7 +525,7 @@
"""See ES9+ InitiateAuthentication SGP.22 Section 5.6.1"""
# Verify that the received address matches its own SM-DP+ address,
where the comparison SHALL be
# case-insensitive. Otherwise, the SM-DP+ SHALL return a status code
"SM-DP+ Address - Refused".
- if content['smdpAddress'] != self.server_hostname:
+ if content['smdpAddress'].lower() != self.server_hostname.lower():
raise ApiError('8.8.1', '3.8', 'Invalid SM-DP+ Address')
euiccChallenge = b64decode(content['euiccChallenge'])
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/43562?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie0738e810572ea3312c885ec8aaa2da4b8b12cd7
Gerrit-Change-Number: 43562
Gerrit-PatchSet: 3
Gerrit-Owner: Hoernchen <[email protected]>
Gerrit-Reviewer: Hoernchen <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>