From 1f562a8ad10186e1ecce54007f8b9f5f7cacf2e8 Mon Sep 17 00:00:00 2001 From: Ross Kinder Date: Mon, 30 Nov 2015 16:53:17 -0500 Subject: [PATCH] update example --- examples/xmldsig.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/xmldsig.go b/examples/xmldsig.go index e07981a..1e936d2 100644 --- a/examples/xmldsig.go +++ b/examples/xmldsig.go @@ -33,7 +33,7 @@ func main() { buf, err := ioutil.ReadAll(os.Stdin) if *doSign { - signedBuf, err := xmldsig.Sign(key, buf) + signedBuf, err := xmldsig.Sign(key, buf, xmldsig.Options{}) if err != nil { fmt.Printf("%s\n", err) os.Exit(1) @@ -42,7 +42,7 @@ func main() { } if *doVerify { - err := xmldsig.Verify(key, buf) + err := xmldsig.Verify(key, buf, xmldsig.Options{}) if err == xmldsig.ErrVerificationFailed { fmt.Println("signature is not correct") os.Exit(1)