On Wed, Nov 08, 2000 at 07:34:33AM -0800, Geoff Thorpe wrote:
[...]
> whose internals are generally only managed inside OpenSSL anyway. Eg. the
> caller may pass a const X509* pointer, but the caller is generally not
> supposed to be using the structure's internals directly anyway - the use
> of "const" is 80% for the application programmer's own benefit, whether we
> violate it or not.
A problem is that if the API says the argument is 'const', then it
looks as if it's safe to use the same object in multiple threads
concurrently. For X509_cmp it is actually safe because
CRYPTO_LOCK_X509 is used if necessary, but we cannot do something like
this for BN_mul.
--
Bodo Möller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]