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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to