Skip to content

Commit

Permalink
Make policy optional for xades
Browse files Browse the repository at this point in the history
  • Loading branch information
lucanioi committed Apr 4, 2023
1 parent 661ffd1 commit f6b60b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ func (s *Signature) buildQualifyingProperties() error {

func (s *Signature) xadesPolicyIdentifier() *PolicyIdentifier {
policy := s.opts.xades.Policy
if policy == nil {
return nil
}

return &PolicyIdentifier{
SigPolicyID: &SigPolicyID{
Identifier: policy.URL,
Expand Down

0 comments on commit f6b60b8

Please sign in to comment.