[xmlsec] Patch for XMLsec Windows app and example builds; Failure of all examples

Aleksey Sanin aleksey at aleksey.com
Wed Dec 1 08:29:02 PST 2010


First, you probably want to use mailing list. This way you might get
a better response.

Second, how did you compile the library and example? Did you use
provided makefiles?

Aleksey

On 11/30/10 11:36 PM, Paul Kennedy wrote:
>
>
> On Tue, Nov 30, 2010 at 11:31 PM, Paul Kennedy <pfk001 at gmail.com
> <mailto:pfk001 at gmail.com>> wrote:
>
>     Aleksey,
>
>     I downloaded the source for the XMLsec library, utilities and
>     examples from this link:
>
>
> This link, which is at http://www.aleksey.com/xmlsec/download.html link,
> which is labeled "Sources for latest version", 1.2.16:
>
> http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.16.tar.gz
>
> I am building using openssl.
>
> Pk.
>
>
>     I found that neither the apps target not the examples built on
>     win32/x86, they are missing a link library reference to zlib.lib. I
>     have a patch for the Makefiles if you want to take it.
>
>     But i have a bigger problem: After building all the binaries and the
>     examples, I am finding that all of the examples fail. I am running
>     the examples just as indicated in the usage() and in the C source
>     files, but they just don't work:
>
>     For example:
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify1.exe
>     sign1-res.xml rsapub.pem
>     func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=465:obj=unknown:subj=dsigCtx->c14nMethod
>     == NULL:error=100:assertion:
>     func=xmlSecDSigCtxVerify:file=..\src\xmldsig.c:line=366:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec
>     library function failed:
>     Error: signature verify
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify2.exe
>     sign2-res.xml rsapub.pem
>     Signature is INVALID
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify2.exe
>     sign2-doc.xml rsapub.pem
>     Error: start node not found in "sign2-doc.xml"
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify3.exe
>     sign3-res.xml rootcert.pem
>     Signature is INVALID
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify3.exe
>     sign3-doc.xml rootcert.pem
>     Error: start node not found in "sign3-doc.xml"
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify4
>     verify4-res.xml rootcert.pem
>     func=xmlSecPtrListAdd:file=..\src\list.c:line=305:obj=unknown:subj=xmlSecPtrListIsValid(list):error=100:assertion:
>     Error: failed to limit allowed key data
>
>     C:\projects\xmlsec\xmlsec1-1.2.16\examples>build\verify4
>     verify4-bad-res.xml rootcert.pem
>     func=xmlSecPtrListAdd:file=..\src\list.c:line=305:obj=unknown:subj=xmlSecPtrListIsValid(list):error=100:assertion:
>     Error: failed to limit allowed key data
>
>
>     Am I doing something wrong ?
>
>     Thanks for your time,
>     Pk.
>
>


More information about the xmlsec mailing list