[xmlsec] Problem with dsig2.c

vishveswar reddy challagonda hivisu at hotmail.com
Fri Dec 13 10:53:32 PST 2002


Hi,

When i installed the xmlsec, the shared object file libxmlsec.so.0 was 
installed in /usr/local/lib. When  i try to use the example programs , it 
looks for the shared object file in /usr/lib. so, i created a soft link from 
/usr/lib --> /usr/local/lib.
Now im able to compile the example files(dsig2.c) but when i try to run the 
program the computer hangs up in the xmlSecDSigGenerate(). im totally 
confused and lost. though im able to sign the documents using xmlsec command 
line utility.
I am giving you the stack trace if it helps you finding what could be wrong.

#0  0x4008d55b in BN_usub () from /usr/lib/libxmlsec.so.0
#1  0x4008d6fe in BN_sub () from /usr/lib/libxmlsec.so.0
#2  0x4008db96 in BN_div () from /usr/lib/libxmlsec.so.0
#3  0x4009166e in BN_mod_inverse () from /usr/lib/libxmlsec.so.0
#4  0x4009342c in BN_MONT_CTX_set () from /usr/lib/libxmlsec.so.0
#5  0x4006a613 in dsa_sign_setup () from /usr/lib/libxmlsec.so.0
#6  0x4006a238 in DSA_sign_setup () from /usr/lib/libxmlsec.so.0
#7  0x4006a3ac in dsa_do_sign () from /usr/lib/libxmlsec.so.0
#8  0x4006a208 in DSA_do_sign () from /usr/lib/libxmlsec.so.0
#9  0x400504b4 in xmlSecSignDsaSha1Sign (digest=0x8053a50, 
buffer=0xbffffbb4,
    size=0xbffffbb8) at dsa.c:238
#10 0x4004d0fc in xmlSecDigestSign (transform=0x8053a50, buffer=0xbffffbb4,
    size=0xbffffbb8) at digests.c:226
#11 0x4004cd43 in xmlSecDigestSignNode (transform=0x8053a50,
    valueNode=0x8052d78, removeOldContent=1) at digests.c:54
#12 0x40057f4e in xmlSecSignedInfoCalculate (signedInfoNode=0x8052380, 
sign=1,
    c14nMethod=0x8053a38, signMethod=0x8053a50, 
signatureValueNode=0x8052d78,
    result=0x80539c8) at xmldsig.c:1289
#13 0x400584c5 in xmlSecSignedInfoRead (signedInfoNode=0x8052380, sign=1,
    signatureValueNode=0x8052d78, keyInfoNode=0x8053860, result=0x80539c8)
    at xmldsig.c:1518
#14 0x40057c09 in xmlSecSignatureRead (signNode=0x8052cc8, sign=1,
---Type <return> to continue, or q <return> to quit---
    result=0x80539c8) at xmldsig.c:1172
#15 0x400571f8 in xmlSecDSigGenerate (ctx=0x8052ca8, context=0x0, key=0x0,
    signNode=0x8052cc8, result=0xbffffd2c) at xmldsig.c:794
#16 0x0804920d in ?? ()
#17 0x400f50bf in __libc_start_main () from /lib/libc.so.6

or am i doing something terribly wrong
thanks
vish








_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




More information about the xmlsec mailing list