Dynamic locks for openssl .. hmm are these even used ? I have 2 problems with locks and openssl
- No provision for passing user context between lock creation/locking/destroy callbacks
- Openssl doesn't care if the callback to lock actually succeded. The return type of the callback is void.
Actually I am struggling with (1) right now. As part of another project, I am writing Apache Portable Runtime (apr) ssl wrappers over openssl api's (well over some of them) and I would very much like to allocate memory for dynamic locks from a caller supplied pool but the openssl callback semantics for dyna locking don't allow this. Grrr