To be honest with you I do not understand what are you doing.
Do you want to do this as a part of signature process or you
are doing it in some separate application?

In the first case, it would be much better to register your new
transform in xmlsec (check transform.h for registeration functions)
and then just put reference to your new transform in the signature
template.

Aleksey

[EMAIL PROTECTED] wrote:

Hi Aleksey,
is possible to insert further transform during executing as I
did? If not, what is a correct way
to perform some cannonicalization included in some transform?

thanks,
P.Q.Hung

P.S. Method int strTransformExecute(...) is executing function of
str transform klass
- used by default  popBin/pushBin/popXml/pushXml methods.

----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 3:23 PM
Subject: [xmlsec] transform question




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
   ....
}

----------

_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec



_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec
_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to