[xmlsec] about detached signature

=?gb2312?B?wr0gt+U=?= yisi_net at hotmail.com
Thu Oct 30 03:41:54 PST 2003


hi,
  i want to implemented detached signature.
  so i had some test.
  After understanding specification,detached signature include two 
aspects.The first is that the data object is in the same XML document as 
sibling elements;the second is the data object is  external network 
resources.
  is it right?
¡¡and now,i have implemented the first instance .
¡¡¡¡the core code is below ,the other code is same as sign3.c¡£
      const xmlChar *id;
      const xmlChar *uri;
      id="PARes12345";
      uri="#PARes12345";
      refNode = xmlSecTmplSignatureAddReference(signNode, 
xmlSecTransformSha1Id,id, uri, NULL);
   but i failed to impletent the second instance.
¡¡¡¡¡¡the core code is :
        const xmlChar *uri;
        uri="http://192.168.0.114/sdroad/index.aspx"£»
¡¡¡¡¡¡¡¡refNode = xmlSecTmplSignatureAddReference(signNode, 
xmlSecTransformSha1Id,NULL,uri, NULL);
¡¡¡¡¡¡why i failed?
      how to sign a document that the detached signature are over external 
network resources.

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  




More information about the xmlsec mailing list