[xmlsec] transform question
hungpq at volny.cz
hungpq at volny.cz
Tue Apr 13 01:23:53 PDT 2004
Hi all,
can some of you tell me what 's wrong I have done?
I am implementing STR transform for web services security. This
transform does something, then perform canonicalization at the
end.
When running the program failed after performin c14n transform,
file "c14n.c", line 273, ret = xmlOutputBufferClose(buf).
I am using xmlSeclib version 1.2.1, windows platform.
Thank you in advance,
P.Q.Hung
The following is my code, that enables canonicalization after str
transform. ----------------
int strTransformExecute(xmlSecTransformPtr transform, int last,
xmlSecTransformCtxPtr transformCtx){
// connect canonicalization
xmlSecTransformPtr canTransform =
xmlSecTransformCreate(xmlSecTransformExclC14NId);
int ret;
if(!transform->next){
ret = xmlSecTransformCtxAppend(transformCtx,
canTransform); if(ret) return -1;
}
else{
xmlSecTransformPtr canNext = transform->next;
ret = xmlSecTransformConnect(transform, canTransform,
transformCtx); if(!ret) ret =
xmlSecTransformConnect(canTransform, canNext, transformCtx);
if(ret) return -1;
}
// perform transform
....
}
----------
More information about the xmlsec
mailing list