On Thu, Jan 10, 2002 at 06:52:53PM +0100, Richard Levitte - VMS Whacker wrote: > From: Joe Orton <[EMAIL PROTECTED]> > > jorton> Does the CRYPTO_NUM_LOCKS increment (and renumbering of > jorton> CRYPTO_LOCK_*) break binary compatibility? I see mod_ssl is > jorton> allocating a static array sized by CRYPTO_NUM_LOCKS... not > jorton> sure if this is common practice. > > It would. That's why the function CRYPTO_num_locks() exists. > > It's unfortunate that CRYPTO_NUM_LOCKS is exported... > > Have we changed CRYPTO_NUM_LOCKS between patch levels? I can't recall > that we have. If we have, that's unfortunate.
Yes, afraid so, these changed between "b" and "c"... the only other change I see which might affect compatibility is the changes to OBJ_ definitions in obj_mac.h, I'm not sure if these matter as well. Regards, joe --- openssl-0.9.6a/include/openssl/crypto.h Thu Apr 5 21:09:30 2001 +++ openssl-0.9.6c/include/openssl/crypto.h Mon Dec 17 19:23:04 2001 @@ -112,17 +112,18 @@ #define CRYPTO_LOCK_SSL_SESS_CERT 15 #define CRYPTO_LOCK_SSL 16 #define CRYPTO_LOCK_RAND 17 -#define CRYPTO_LOCK_MALLOC 18 ... -#define CRYPTO_NUM_LOCKS 28 +#define CRYPTO_LOCK_RAND2 18 ... +#define CRYPTO_NUM_LOCKS 29 --- openssl-0.9.6a/include/openssl/obj_mac.h Thu Apr 5 21:12:30 2001 +++ openssl-0.9.6c/include/openssl/obj_mac.h Tue Dec 4 11:10:53 2001 @@ -1,4 +1,10 @@ ... -#define OBJ_id_pda_gender OBJ_id_pda,4L +#define OBJ_id_pda_gender OBJ_id_pda,3L ... -#define OBJ_id_pda_countryOfCitizenship OBJ_id_pda,5L +#define OBJ_id_pda_countryOfCitizenship OBJ_id_pda,4L ... -#define OBJ_id_pda_countryOfResidence OBJ_id_pda,6L +#define OBJ_id_pda_countryOfResidence OBJ_id_pda,5L -#define OBJ_subject_key_identifier OBJ_ld_ce,14L +#define OBJ_subject_key_identifier OBJ_id_ce,14L ...etc, etc... ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]