(_ *dsig.ValidationContext, el *etree.Element)
| 46 | } |
| 47 | |
| 48 | func (v *signedElementVerifier) VerifySignedElement(_ *dsig.ValidationContext, el *etree.Element) (*etree.Element, error) { |
| 49 | v.calls++ |
| 50 | signed := el.Copy() |
| 51 | for _, nameID := range signed.FindElements("//NameID") { |
| 52 | nameID.SetText("signed@example.com") |
| 53 | } |
| 54 | for _, sig := range signed.FindElements("./Signature") { |
| 55 | signed.RemoveChild(sig) |
| 56 | } |
| 57 | return signed, nil |
| 58 | } |
| 59 | |
| 60 | // The service provider reads a signed Response or Assertion from the element |
| 61 | // the signature check returns, not from the one it received. |
nothing calls this directly
no outgoing calls
no test coverage detected