Fix linting issues
This commit is contained in:
parent
6e11657204
commit
9885d42711
1 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ func newACMEProv(t *testing.T) *provisioner.ACME {
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string) (*jose.JSONWebSignature, error) {
|
func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID, u string) (*jose.JSONWebSignature, error) {
|
||||||
signer, err := jose.NewSigner(
|
signer, err := jose.NewSigner(
|
||||||
jose.SigningKey{
|
jose.SigningKey{
|
||||||
Algorithm: jose.SignatureAlgorithm("HS256"),
|
Algorithm: jose.SignatureAlgorithm("HS256"),
|
||||||
|
@ -59,7 +59,7 @@ func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string
|
||||||
&jose.SignerOptions{
|
&jose.SignerOptions{
|
||||||
ExtraHeaders: map[jose.HeaderKey]interface{}{
|
ExtraHeaders: map[jose.HeaderKey]interface{}{
|
||||||
"kid": keyID,
|
"kid": keyID,
|
||||||
"url": url,
|
"url": u,
|
||||||
},
|
},
|
||||||
EmbedJWK: false,
|
EmbedJWK: false,
|
||||||
},
|
},
|
||||||
|
@ -91,8 +91,8 @@ func createEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string
|
||||||
return parsedJWS, nil
|
return parsedJWS, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func createRawEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID string, url string) ([]byte, error) {
|
func createRawEABJWS(jwk *jose.JSONWebKey, hmacKey []byte, keyID, u string) ([]byte, error) {
|
||||||
jws, err := createEABJWS(jwk, hmacKey, keyID, url)
|
jws, err := createEABJWS(jwk, hmacKey, keyID, u)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue