[xmlsec] Problems writing multithreaded application

Dmitry Belyavsky beldmit at cryptocom.ru
Tue Oct 5 00:31:58 PDT 2004


Hello!

On Mon, 4 Oct 2004, Aleksey Sanin wrote:

> I believe the problem was how to pass "context" information
> from the application to the crypto transforms. The proposed
> solution is to store the necessary data in TLS and then access
> them from the crypto transform. Obviously, you have to do it
> from each thread :)

I decided to do so.

> There is another option. Add "callbacks" to xmlSecDSigCtx and
> xmlSecEncCtx that would be called by xmlsec after creating
> transforms chain. Then application can use these calbacks to
> set "userData" in the transform contexts as needed.

Unfortunately it seems to me callback cannot help me pass userData from
xmlSecDSigCtx to digest operation context because it was not called. Am
I wrong?

-- 
SY, Dmitry Belyavsky (ICQ UIN 11116575)




More information about the xmlsec mailing list