Commit Graph

13 Commits

Author SHA1 Message Date
bc74cdd9f0 c 2018-12-13 19:33:04 +01:00
60e0ce44d3 update package 2018-12-13 00:31:06 +01:00
Tim Ebringer
9a878d8e76 Fix breakages on Fedora 25
On Fedora 25, tests fail with error

  func=xmlSecCryptoAppInit:file=app.c:line=1423:
  obj=unknown:subj=cryptoAppInit:error=9:
  feature is not implemented:
  panic: xmlsec crypto initialization failed.

This appears to be because the pkg-config files set the wrong
CFLAGS defines for cgo, which results in runtime breakage
beacuse OpenSSL isn't properly loaded.

In order to fix how Fedora sets up these packages we want defines
XMLSEC_CRYPTO_OPENSSL set, XMLSEC_CRYPTO_DYNAMIC_LOADING unset
and we want to force linking with xmlsec1-openssl. This change
puts these in cgo directives.

We also fix a test which now has some off-by-one line number
changes in the error message.
2017-01-15 15:59:04 -05:00
Nicola Asuni
811594f91a Fix nosec comments 2016-12-04 13:32:12 +00:00
Nicola Asuni
2bb9d29926 Fix static analyzers warnings and errors 2016-11-14 11:56:53 +00:00
andrew.smith@miracl.com
1720c7896d prevent <?xml verion> being output during encryption 2016-10-31 17:00:08 +00:00
Ross Kinder
db09fcec31 support and describe building static binaries 2016-09-03 19:31:03 -04:00
Ross Kinder
2ab6245e33 initialize libxml error capture when we start processing XML on each thread. 2015-12-23 18:54:11 -05:00
Ross Kinder
dc37ddb368 capture errors from libxml2
fixes #4
2015-12-23 17:18:02 -05:00
Ross Kinder
c095422255 get rid of un-idiomatic []byte(C.GoStringN(…)) and instead use C.GoBytes() 2015-12-23 15:15:50 -05:00
Ross Kinder
6113cc3d6f get rid of hacky newDoc2() 2015-12-23 15:09:37 -05:00
Ross Kinder
b31c1472a0 clean up, add documentation, fix lint errors 2015-12-23 14:11:29 -05:00
Ross Kinder
b390a3e30a progress: enable xmldsig and do other cleanups 2015-12-23 11:31:54 -05:00