[xmlsec] Troubles with xPointer

Jürgen Heiss jheiss at Mesonic.com
Mon Mar 12 06:55:43 PST 2007


Hi,
 
Something doesn't work with the xPointer.

This is a part of my xmlfile.
 
 
<dsig:Reference Id="etsi-data-reference-0-1172582018-20293312-702" Type="http://uri.etsi.org/01903/v1.1.1#SignedProperties <http://uri.etsi.org/01903/v1.1.1#SignedProperties> " 
URI="#xmlns(etsi=http://uri.etsi.org/01903/v1.1.1%23)%20xpointer(id('etsi-data-object-0-1172582018-20293312-30582')/child::etsi:QualifyingProperties/child::etsi:SignedProperties)">
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/ <http://www.w3.org/2000/09/xmldsig#sha1"/> >
<dsig:DigestValue>OQXGzv7kDEF+1MF/MqC49V2bPeQ=</dsig:DigestValue>
</dsig:Reference>
 
Everything went fine, till the Function xmlSecTransformMemBufGetBuffer(transform);

ctx->result = xmlSecTransformMemBufGetBuffer(transform);

xmlSecBufferPtr xmlSecTransformMemBufGetBuffer(xmlSecTransformPtr transform) 
{
    xmlSecBufferPtr buffer;
 
    xmlSecAssert2(xmlSecTransformCheckId(transform, xmlSecTransformMemBufId), NULL);
    
    buffer = xmlSecTransformMemBufGetBuf(transform);
    xmlSecAssert2(buffer != NULL, NULL);
    
    return(buffer);
}
 
Transform look alright, doesn't it? But the result buffer always ist NULL?

- transform 0x029ab660 {id=0x10061280 xmlSecTransformMemBufKlass operation=xmlSecTransformOperationNone status=xmlSecTransformStatusNone ...} _xmlSecTransform *
+ id 0x10061280 xmlSecTransformMemBufKlass const _xmlSecTransformKlass *
 operation xmlSecTransformOperationNone xmlSecTransformOperation
 status xmlSecTransformStatusNone xmlSecTransformStatus
+ hereNode 0x00000000 {_private=??? type=??? name=??? ...} _xmlNode *
+ next 0x00000000 {id=??? operation=??? status=??? ...} _xmlSecTransform *
+ prev 0x029adf50 {id=0x0085a240 xmlSecOpenSSLSha1Klass operation=xmlSecTransformOperationVerify status=xmlSecTransformStatusNone ...} _xmlSecTransform *
+ inBuf {data=0x00000000 <Bad Ptr> size=0 maxSize=0 ...} _xmlSecBuffer
+ outBuf {data=0x00000000 <Bad Ptr> size=0 maxSize=0 ...} _xmlSecBuffer
+ inNodes 0x00000000 {nodes=??? doc=??? destroyDoc=??? ...} _xmlSecNodeSet *
+ outNodes 0x00000000 {nodes=??? doc=??? destroyDoc=??? ...} _xmlSecNodeSet *
 reserved0 0x00000000 void *
 reserved1 0x00000000 void *
 0x00000000 0 int
 
 
- buffer 0x029ab6a8 {data=0x00000000 <Bad Ptr> size=0 maxSize=0 ...} _xmlSecBuffer *
+ data 0x00000000 <Bad Ptr> unsigned char *
 size 0 unsigned int
 maxSize 0 unsigned int
 allocMode xmlSecAllocModeDouble xmlSecAllocMode

 
Does some one have any idea, what I can check or does someone else have this problem?
 
 
thanks
 
Jürgen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20070312/a703454e/attachment-0002.htm


More information about the xmlsec mailing list