[xmlsec] ErrorsCallback ???
Edward Shallow
ed.shallow at rogers.com
Thu Jan 5 14:03:28 PST 2006
Hi Aleksey,
A few weeks ago I sent a post related to a problem whereby the last
argument being passed to the ErrorsCallback seemed always to be NULL. I
double checked a few things, and it seems to be isolated to mscrypto, though
there are other inconsistencies in general. Below is a simple password error
trapped and sent to the callback in 1) openssl, and 2) mscrypto (all msg
arguments missing), and 3) what is sent to stdout w/o Callback set.
This msg NULL problem happens for most every operation in mscrypto.
Sign, Encrypt, Decrypt. I have found a few isolated messages which do get
passed when doing a Verify. Normally though I see nothing in msg for
mscrypto.
Is anyone else seeing this or is it just me ?
Ed
P.S. Does it make sense to add a call to xmlsec similar to libxml2's
xmlGetLastError() as an option to the ErrorsCallback ?
OpenSSL
*******
epmErrorCallback xmlsec error follows:
file ..\src\openssl\app.c
line 676
func xmlSecOpenSSLAppPkcs12LoadBIO
errorObject None
errorSubject PKCS12_verify_mac
reason 4
msg
epmErrorCallback xmlsec error follows:
file ..\src\openssl\app.c
line 292
func xmlSecOpenSSLAppKeyLoadBIO
errorObject None
errorSubject xmlSecOpenSSLAppPkcs12LoadBIO
reason 1
msg
epmErrorCallback xmlsec error follows:
file ..\src\openssl\app.c
line 140
func xmlSecOpenSSLAppKeyLoad
errorObject None
errorSubject xmlSecOpenSSLAppKeyLoadBIO
reason 1
msg
filename=/usr/local/src/epm/keys/upu/EdShallow.p12;errno=0
mscrypto
********
epmErrorCallback xmlsec error follows:
file ..\src\mscrypto\app.c
line 614
func xmlSecMSCryptoAppPkcs12LoadMemory
errorObject None
errorSubject PFXVerifyPassword
reason 4
msg
epmErrorCallback xmlsec error follows:
file ..\src\mscrypto\app.c
line 522
func xmlSecMSCryptoAppPkcs12Load
errorObject None
errorSubject xmlSecMSCryptoAppPkcs12LoadMemory
reason 1
msg
epmErrorCallback xmlsec error follows:
file ..\src\mscrypto\app.c
line 128
func xmlSecMSCryptoAppKeyLoad
errorObject None
errorSubject xmlSecMSCryptoAppPkcs12Load
reason 1
Msg
No ErrorsCallback set
*********************
func=xmlSecMSCryptoAppPkcs12LoadMemory:file=..\src\mscrypto\app.c:line=614:o
bj=unknown:subj=PFXVerifyPassword:error=4:crypto library function failed:
;last error=86 (0x00000056);last error msg=The specified network password is
not correct.
func=xmlSecMSCryptoAppPkcs12Load:file=..\src\mscrypto\app.c:line=522:obj=unk
nown:subj=xmlSecMSCryptoAppPkcs12LoadMemory:error=1:xmlsec library function
failed: ;last error=86 (0x00000056);last error msg=The specified network
password is not correct.
func=xmlSecMSCryptoAppKeyLoad:file=..\src\mscrypto\app.c:line=128:obj=unknow
n:subj=xmlSecMSCryptoAppPkcs12Load:error=1:xmlsec library function failed:
;last error=86 (0x00000056);last error msg=The specified network password is
not correct.
More information about the xmlsec
mailing list