[xmlsec] signing failure with 0.0.13 that work with 0.0.10
Moultrie, Ferrell (ISSAtlanta)
FMoultrie@iss.net
Wed, 19 Mar 2003 14:46:46 -0500
Aleksey:
Thanks!! Built/tested on Win32 and it now works like 0.0.10+. This
makes it easy to use and it works .. both nice traits.
Ferrell
-----Original Message-----
From: Aleksey Sanin [mailto:aleksey@aleksey.com]=20
Sent: Wednesday, March 19, 2003 2:07 PM
To: Aleksey Sanin
Cc: Moultrie, Ferrell (ISSAtlanta); xmlsec@aleksey.com
Subject: Re: [xmlsec] signing failure with 0.0.13 that work with 0.0.10
Fixed in the branch and the trunk (the patch agains 0.0.13 is bellow).
Sorry about that, I've tried to make your patch better :(
Aleksey
Index: apps/xmlsec.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gnome/xmlsec/apps/xmlsec.c,v
retrieving revision 1.21.2.5
retrieving revision 1.21.2.6
diff -u -r1.21.2.5 -r1.21.2.6
--- apps/xmlsec.c 5 Feb 2003 17:52:33 -0000 1.21.2.5
+++ apps/xmlsec.c 19 Mar 2003 19:16:49 -0000 1.21.2.6
@@ -1282,10 +1282,12 @@
xmlXPathFreeContext(ctx);
xmlXPathFreeObject(obj);
- } else if(defNodeName !=3D NULL) {
- cur =3D xmlSecFindNode(xmlDocGetRootElement(doc), defNodeName,=20
defNodeNs); } else {
cur =3D xmlDocGetRootElement(doc);
+ }
+
+ if(defNodeName !=3D NULL) {
+ cur =3D xmlSecFindNode(cur, defNodeName, defNodeNs);
}
return(cur);
}