Re: testing gcrypt thread-safety

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: testing gcrypt thread-safety

by Simon Josefsson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Taken from the libgcrypt list:

Daniel Kahn Gillmor <dkg@...> writes:

> I don't see any code in the tests/ directory which exercises this stuff,
> but i'd be willing to write a test if anyone has a particular feature
> that they think would be worth testing against threadsafe initialization.

It would be useful to have a threaded self-test in GnuTLS too -- if you
have a minimal test case that initializes gcrypt and does some gcrypt
testing in two (or more) parallel threads, it would be great if you
could contribute that to GnuTLS too, and I can adapt it to do TLS
sessions in each thread.

I'm thinking it would be nice to a have a threaded version of
tests/mini.c which does in-process TLS negotiations.  It could set up
two threads that talked to each other with its own push/pull functions
protected by a mutex.

/Simon


_______________________________________________
Gnutls-devel mailing list
Gnutls-devel@...
http://lists.gnu.org/mailman/listinfo/gnutls-devel