Check out my first novel, midnight's simulacra!
OpenSSL: Difference between revisions
From dankwiki
(Created page with '==Threads== * The threads(3ssl) man page is pretty good. * Unless you're using OpenSSL 0.9.9, the <tt>CRYPTO_set_id_callback(3ssl)</tt> is pretty much broken on pthreads impl...') |
No edit summary |
||
Line 1: | Line 1: | ||
==Threads== | ==Threads== | ||
* The threads(3ssl) man page is pretty good. | * The <tt>threads(3ssl)</tt> man page is pretty good. | ||
* Unless you're using OpenSSL 0.9.9, the <tt>CRYPTO_set_id_callback(3ssl)</tt> is pretty much broken on [[pthreads]] implementations which don't return an integer value from <tt>pthread_self(3)</tt>. This is true for the [[FreeBSD APIs|FreeBSD]] native implementations (the [[LinuxThreads]] emulation package should work, but is broken in other, more grave, ways). On OpenSSL 0.9.9, <tt>CRYPTO_set_idptr_callback(3ssl)</tt> can be used for implementations which return a pointer or an aggregate. | * Unless you're using OpenSSL 0.9.9, the <tt>CRYPTO_set_id_callback(3ssl)</tt> is pretty much broken on [[pthreads]] implementations which don't return an integer value from <tt>pthread_self(3)</tt>. This is true for the [[FreeBSD APIs|FreeBSD]] native implementations (the [[LinuxThreads]] emulation package should work, but is broken in other, more grave, ways). On OpenSSL 0.9.9, <tt>CRYPTO_set_idptr_callback(3ssl)</tt> can be used for implementations which return a pointer or an aggregate. | ||
==See also== | ==See also== | ||
[http://www.mail-archive.com/openssl-users@openssl.org/msg52117.html "Clarification questions on OpenSSL thread-safe support"], openssl-users mailing list 2008-03-10 | [http://www.mail-archive.com/openssl-users@openssl.org/msg52117.html "Clarification questions on OpenSSL thread-safe support"], openssl-users mailing list 2008-03-10 |
Revision as of 08:12, 5 August 2009
Threads
- The threads(3ssl) man page is pretty good.
- Unless you're using OpenSSL 0.9.9, the CRYPTO_set_id_callback(3ssl) is pretty much broken on pthreads implementations which don't return an integer value from pthread_self(3). This is true for the FreeBSD native implementations (the LinuxThreads emulation package should work, but is broken in other, more grave, ways). On OpenSSL 0.9.9, CRYPTO_set_idptr_callback(3ssl) can be used for implementations which return a pointer or an aggregate.
See also
"Clarification questions on OpenSSL thread-safe support", openssl-users mailing list 2008-03-10