update package

This commit is contained in:
2018-12-13 00:31:06 +01:00
23 changed files with 750 additions and 135 deletions

View File

@@ -6,7 +6,7 @@ import (
"io/ioutil"
"os"
"github.com/gofly/go-xmlsec"
xmlsec "git.deineagentur.com/DeineAgenturUG/go-xmlsec"
)
func main() {
@@ -31,6 +31,10 @@ func main() {
}
buf, err := ioutil.ReadAll(os.Stdin)
if err != nil {
fmt.Printf("%s\n", err)
os.Exit(1)
}
if *doSign {
signedBuf, err := xmlsec.Sign(key, buf, xmlsec.SignatureOptions{})
@@ -38,7 +42,7 @@ func main() {
fmt.Printf("%s\n", err)
os.Exit(1)
}
os.Stdout.Write(signedBuf)
os.Stdout.Write(signedBuf) //#nosec
}
if *doVerify {