[openssl-dev] CRYPTO_lock definition gone?

Blumenthal, Uri - 0553 - MITLL uri at ll.mit.edu
Fri Mar 11 15:29:34 UTC 2016


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160311/401fb43b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4324 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160311/401fb43b/attachment-0001.bin>


More information about the openssl-dev mailing list