CRYPTO_LOCK_X509_STORE in OpenSSL 1.1.0

Matt Caswell matt at openssl.org
Mon Apr 15 11:52:26 UTC 2019



On 15/04/2019 12:25, Swamy J-S wrote:
> Hi All,
> 
> 
> I updated openssl from 1.0.2n to 1.1.0g recently and facing some errors in
> building my application because many functions and structures are opaque now in
> 1.1.0g. Errors am getting are as below :
> 
> 
> error: ‘CRYPTO_LOCK_X509_STORE’ undeclared (first use in this function); did you
> mean ‘CRYPTO_EX_INDEX_X509_STORE’?
>              CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE);
>                            ^~~~~~~~~~~~~~~~~~~~~~
>                            CRYPTO_EX_INDEX_X509_STORE
> 
>  warning: implicit declaration of function ‘CRYPTO_w_lock’; did you mean
> ‘CRYPTO_zalloc’? [-Wimplicit-function-declaration]
>              CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE);
>              ^~~~~~~~~~~~~
>              CRYPTO_zalloc
> 
> So what is the alternate option available for "CRYPTO_LOCK_X509_STORE" and
> "CRYPTO_w_lock" in openssl 1.1.0g ?
> 

What are you attempting to do that requires you to acquire this lock? The API
functions should acquire and release the lock automatically where appropriate.

Matt


More information about the openssl-users mailing list