With a signed xml-document in 'doc', the following code fragment for getting the signature method worked in xml-security-c 1.3.0:

    XSECProvider prov;
    DSIGSignature *sig = prov.newSignatureFromDOM(doc);
    sig->load();
    signatureMethod meth= sig->getSignatureMethod();

Since the commit linked below DSIGSignature::getSignatureMethod() returns SIGNATURE_NONE.


http://svn.apache.org/viewvc/xml/security/trunk/c/src/dsig/DSIGSignedInfo.cpp?r1=409902&r2=450747

Looks like a bug to me.

Regards,

Thomas Sondergaard

Reply via email to