Skip to content

Commit

Permalink
Add a variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpherrinm committed May 1, 2024
1 parent ac5d6f1 commit 35357e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wfe/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -2787,9 +2787,11 @@ func (wfe *WebFrontEndImpl) verifyEAB(
}

// The "alg" field MUST indicate a MAC-based algorithm
eab, err := jose.ParseSigned(string(eabBytes), []jose.SignatureAlgorithm{
eabSignatureAlgorithms := []jose.SignatureAlgorithm{
jose.HS256, jose.HS384, jose.HS512,
})
}

eab, err := jose.ParseSigned(string(eabBytes), eabSignatureAlgorithms)
if err != nil {
return nil, acme.MalformedProblem(
fmt.Sprintf("failed to decode external account binding: %s", err))
Expand Down

0 comments on commit 35357e1

Please sign in to comment.