http://xmlsoft.org/examples/index.html#XPath
http://xmlsoft.org/examples/xpath1.c
line 186: Function xmlXPathRegisterNs from xpathInternals.h
Aleksey
Brian McLaughlin wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aleksey,
Apologies for my ignorance but before attempting this I had no
knowledge of XML. Can you explain how I can initialise the name space
so I can search within the document for the X509Certificate node?
Thanks,
Brian.
Aleksey Sanin wrote:
When I verify, I am aware that I will use the X509Certificate
node for verifying but I also want to parse the X509Certificate
separately and confirm it is the certificate I expect - the way I
am doing this uses XPath and I believed I could search for
//X509Certificate however this yields no results.
You are forgetting about namespaces:
http://xmlsoft.org/examples/index.html#XPath
http://xmlsoft.org/html/libxml-xpathInternals.html#xmlXPathRegisterNs
BTW, the certificate used to verify the signature is available in
the key object returned in the xmlDSigCtx structure.
Aleksey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGEomix+Pka16x9kURAs0hAKDJcApUW9vc8EWr23KEtFN3ewKgCQCaAlyR
0gmJ24RJe8h4kYpkPyHw0F4=
=K2yj
-----END PGP SIGNATURE-----
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec