[xmlsec] Error in transforms.c

Arda Tekin atekin@softhome.net
Tue, 25 Mar 2003 13:52:11 +0200


This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_jive-14205-1048593171-0001-2
Content-Type: multipart/alternative; boundary="=_jive-14205-1048593171-0001-3"

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_jive-14205-1048593171-0001-3
Content-Type: text/plain; charset=iso-8859-9
Content-Transfer-Encoding: quoted-printable

Hello Mr. Aleksey,

xmlsec.exe reports an error message when I run it with this program =
arguments=20
"verify --trusted C:\Test_Certs\GPayments.cer c:\PARes.xml"
 and the error message in console is:

xmlSecTransformStateParseUri (..\src\transforms.c:1182): error 4: xml =
operation
failed : xmlXPtrEval(753nKonMmYHO9pww2NoJA854fgE0)
xmlSecTransformStateCreate (..\src\transforms.c:881): error 2: xmlsec =
operation
failed : xmlSecTransformStateParseUri(#753nKonMmYHO9pww2NoJA854fgE0)
xmlSecReferenceRead (..\src\xmldsig.c:1602): error 2: xmlsec operation =
failed :
xmlSecTransformStateCreate
xmlSecSignedInfoRead (..\src\xmldsig.c:1476): error 2: xmlsec operation =
failed :
 xmlSecReferenceRead - -1
xmlSecSignatureRead (..\src\xmldsig.c:1175): error 2: xmlsec operation =
failed :
xmlSecSignedInfoRead - -1
xmlSecDSigValidate (..\src\xmldsig.c:733): error 2: xmlsec operation =
failed : xm
lSecSignatureRead - -1

This error message occurs afters validateDSig() function. (I debug the =
xmlsec.c at the same time). What can be the reason?

Arda Tekin

--=_jive-14205-1048593171-0001-3
Content-Type: text/html; charset=iso-8859-9
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-9">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello Mr. Aleksey,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>xmlsec.exe reports an error message =
when I run it=20
with this program arguments </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"verify --trusted =
C:\Test_Certs\GPayments.cer=20
c:\PARes.xml"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;and the error message in console=20
is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>xmlSecTransformStateParseUri=20
(..\src\transforms.c:1182): error 4: xml operation<BR>failed :=20
xmlXPtrEval(753nKonMmYHO9pww2NoJA854fgE0)<BR>xmlSecTransformStateCreate=20
(..\src\transforms.c:881): error 2: xmlsec operation<BR>failed :=20
xmlSecTransformStateParseUri(#753nKonMmYHO9pww2NoJA854fgE0)<BR>xmlSecRefe=
renceRead=20
(..\src\xmldsig.c:1602): error 2: xmlsec operation failed=20
:<BR>xmlSecTransformStateCreate<BR>xmlSecSignedInfoRead =
(..\src\xmldsig.c:1476):=20
error 2: xmlsec operation failed :<BR>&nbsp;xmlSecReferenceRead -=20
-1<BR>xmlSecSignatureRead (..\src\xmldsig.c:1175): error 2: xmlsec =
operation=20
failed :<BR>xmlSecSignedInfoRead - -1<BR>xmlSecDSigValidate=20
(..\src\xmldsig.c:733): error 2: xmlsec operation failed :=20
xm<BR>lSecSignatureRead - -1<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This error message occurs afters <FONT=20
color=3D#880000>validateDSig</FONT>() function. (I debug the xmlsec.c at =
the same=20
time). What can be the reason?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Arda Tekin</DIV></FONT></BODY></HTML>

--=_jive-14205-1048593171-0001-3--

--=_jive-14205-1048593171-0001-2
Content-Type: application/x-x509-ca-cert; name="GPayments.cer"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="GPayments.cer"

-----BEGIN CERTIFICATE-----
MIICOzCCAeWgAwIBAgIQazV34VzY/rxAdU/vkRbzrjANBgkqhkiG9w0BAQQFADB+
MQswCQYDVQQGEwJBVTEYMBYGA1UECBMPTmV3IFNvdXRoIFdhbGVzMQ8wDQYDVQQH
EwZTeWRuZXkxGjAYBgNVBAoTEUdQYXltZW50cyBQdHkgTHRkMRQwEgYDVQQLEwtJ
VCBTZXJ2aWNlczESMBAGA1UEAxMJR1BheW1lbnRzMB4XDTAxMTEyOTA1MzU0NFoX
DTA2MTEyOTA1MzU0NFowfjELMAkGA1UEBhMCQVUxGDAWBgNVBAgTD05ldyBTb3V0
aCBXYWxlczEPMA0GA1UEBxMGU3lkbmV5MRowGAYDVQQKExFHUGF5bWVudHMgUHR5
IEx0ZDEUMBIGA1UECxMLSVQgU2VydmljZXMxEjAQBgNVBAMTCUdQYXltZW50czBc
MA0GCSqGSIb3DQEBAQUAA0sAMEgCQQCz5SP9VdqMkOXROdNwqTHx9wDxahcGg6yM
FjNohUn3olge8quy0o2c2nQk7tkLPBmHOJbNt7lyIPAlnvFoLf9JAgMBAAGjPzA9
MAsGA1UdDwQEAwIAxjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSobQmpLKBP
dAIyWYUen7HjUyN/MDANBgkqhkiG9w0BAQQFAANBABunbnhi1+LzwCuysTj37818
rORPzZ/5DNC56eJedeoRAYS8m9V5PH4kjbWMuKzN1VOCVTdGSzvPU6bCezAcqTA=
-----END CERTIFICATE-----

--=_jive-14205-1048593171-0001-2
Content-Type: text/xml; name="PARes.xml"; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="PARes.xml"

<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Nasdaq Boom =
(World of Cracking) -->
<ThreeDSecure>
	<Message id=3D"10418691275318161555119738837784">
		<PARes id=3D"753nKonMmYHO9pww2NoJA854fgE0">
			<version>1.0.1</version>
			<Merchant>
				<acqBIN>412345</acqBIN>
				<merID>123456789012345</merID>
			</Merchant>
			<Purchase>
				<xid>MDAwMDAwMDAwMDAwMDAwMDAxMDI=3D</xid>
				<date>20030106 18:00:27</date>
				<purchAmount>22365</purchAmount>
				<currency>840</currency>
				<exponent>2</exponent>
			</Purchase>
			<pan>4123450131003312</pan>
			<TX>
				<time>20030106 16:01:22</time>
				<status>Y</status>
				<cavv>AAABAlBZUAAAAAAAAAAAAAAAAAA=3D</cavv>
				<eci>05</eci>
				<cavvAlgorithm>1</cavvAlgorithm>
			</TX>
		</PARes>
		<Signature xmlns=3D"http://www.w3.org/2000/09/xmldsig#">
			<SignedInfo>
				<CanonicalizationMethod =
Algorithm=3D"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
				<SignatureMethod =
Algorithm=3D"http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
				<Reference URI=3D"#753nKonMmYHO9pww2NoJA854fgE0">
					<DigestMethod =
Algorithm=3D"http://www.w3.org/2000/09/xmldsig#sha1"/>
					<DigestValue>EwIfFB8MiP5XZgX8Ka5UIJCnBXM=3D</DigestValue>
				</Reference>
			</SignedInfo>
			=
<SignatureValue>IhqUFqI7xC6Zzpw5K82ncFUEUspJRJdrcDgvY1i+WBnQ7ZuIm84SqP/cO=
2iecj+2MD4ZOmfe+rm+soWLaDK/Q7CcluTu5gEvZmf33tYd6yn2LOksORs0EkoA2b5TyyLt1R=
uqaXmh07ManP7sLKlT2vAdh75OYv/QB1FtOY1PoAg=3D</SignatureValue>
			<KeyInfo>
				<X509Data>
					<X509SubjectName>CN=3DTest Bank, OU=3DIT, O=3DTest Bank Pty. Ltd., =
L=3DSydney, ST=3DNSW, C=3DAU</X509SubjectName>
					=
<X509Certificate>MIIDtjCCA2CgAwIBAgIHD+tQAAAAbTANBgkqhkiG9w0BAQQFADB+MQsw=
CQYDVQQGEwJBVTEYMBYGA1UECBMPTmV3IFNvdXRoIFd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