Skip to content

Commit

Permalink
Auth5gAkaComfirmRequestProcedure change to equalfold (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: 張哲睿 <[email protected]>
  • Loading branch information
Jerry0666 and a0979682372 authored Aug 8, 2023
1 parent 64f47eb commit da5d64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sbi/producer/ue_authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func Auth5gAkaComfirmRequestProcedure(updateConfirmationData models.Confirmation

// Compare the received RES* with the stored XRES*
logger.Auth5gAkaLog.Infof("res*: %x\nXres*: %x\n", updateConfirmationData.ResStar, ausfCurrentContext.XresStar)
if strings.Compare(updateConfirmationData.ResStar, ausfCurrentContext.XresStar) == 0 {
if strings.EqualFold(updateConfirmationData.ResStar, ausfCurrentContext.XresStar) {
ausfCurrentContext.AuthStatus = models.AuthResult_SUCCESS
responseBody.AuthResult = models.AuthResult_SUCCESS
success = true
Expand Down

0 comments on commit da5d64f

Please sign in to comment.