Yes, the old locking “stuff” is gone now.  Look in threads.pod for information 
about CRYPTO_THREAD_lock_new, etc.

Its cross-platform and better-integrated with the native OS

--
Senior Architect, Akamai Technologies
IM: richs...@jabber.at Twitter: RichSalz

From: Blumenthal, Uri - 0553 - MITLL [mailto:u...@ll.mit.edu]
Sent: Friday, March 11, 2016 10:30 AM
To: openssl-dev
Subject: [openssl-dev] CRYPTO_lock definition gone?

In a commit done in the last two days, definition of CRYPTO_lock() seems to 
have disappeared or moved. As a result, libp11 cannot compile on 
openssl-1.1-pre4:


p11_cert.c:50:3: warning: implicit declaration of function 'CRYPTO_lock' is 
invalid in C99 [-Wimplicit-function-declaration]

                pkcs11_w_lock(cpriv->lockid);

                ^

./libp11-int.h:142:11: note: expanded from macro 'pkcs11_w_lock'

        if(type) CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

                 ^

p11_cert.c:50:3: error: use of undeclared identifier 'CRYPTO_LOCK'

./libp11-int.h:142:23: note: expanded from macro 'pkcs11_w_lock'

        if(type) CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

                             ^

p11_cert.c:50:3: error: use of undeclared identifier 'CRYPTO_WRITE'

./libp11-int.h:142:35: note: expanded from macro 'pkcs11_w_lock'

        if(type) CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

                                         ^

p11_cert.c:52:3: error: use of undeclared identifier 'CRYPTO_UNLOCK'

                pkcs11_w_unlock(cpriv->lockid);

                ^

./libp11-int.h:144:23: note: expanded from macro 'pkcs11_w_unlock'

        if(type) CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

                             ^

p11_cert.c:52:3: error: use of undeclared identifier 'CRYPTO_WRITE'

./libp11-int.h:144:37: note: expanded from macro 'pkcs11_w_unlock'

        if(type) CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)

                                           ^

1 warning and 4 errors generated.

make[2]: *** [libp11_la-p11_cert.lo] Error 1
--
Regards,
Uri Blumenthal
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to