CRYPTO_LOCK_X509_STORE in OpenSSL 1.1.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CRYPTO_LOCK_X509_STORE in OpenSSL 1.1.0

Swamy J-S

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 ?

Reply | Threaded
Open this post in threaded view
|

Re: CRYPTO_LOCK_X509_STORE in OpenSSL 1.1.0

Matt Caswell-2


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