[xmlsec] Dos the XMLSec library support multithreading?

Aleksey Sanin aleksey at aleksey.com
Tue May 11 08:47:27 PDT 2004

Yes, the library does support multithreading. xmlSecSigCtx
and xmlSecEncCtx are supposed to be used to do one signature
at a time and from one thread at a time. xmlSecKeysMngr can
be shared by many threads *for reading*. There are no
sychronizaton inside the library itself. If you want to read
and write to xmlSecKeysMngr in the same time then you have
to implement your own keys manager.

You did not provide information about OS/crypto library you use
or the stack of your crash. It might happen that there is an issue
with particular crypto library that might require additional "per
thread" initialization.


More information about the xmlsec mailing list