[Gambas-user] Pre-release of Gambas 3.9.0

Tobias Boege taboege at ...626...
Sun Aug 21 18:15:25 CEST 2016


On Sun, 21 Aug 2016, PICCORO McKAY Lenz wrote:
> i have error compiling, agains openssl 0.X not 1.X
> 
>   CC     gb_openssl_la-main.lo
>     CC     gb_openssl_la-c_digest.lo
>     c_digest.c: In function ‘get_dlist’:
>     c_digest.c:51: warning: implicit declaration of function ‘EVP_MD_do_all’
>     c_digest.c: In function ‘EVP_MD_CTX_reset’:
>     c_digest.c:174: warning: implicit declaration of function
> ‘EVP_PKEY_CTX_free’
>     c_digest.c:174: error: ‘EVP_MD_CTX’ has no member named ‘pctx’
> 

Apparently that member was introduced on 22 May 2006 (apparently OpenSSL
0.9.7k) and removed again on 27 Nov 2015 (according to git tags, the versions
1.0.2e, 1.0.1q, 0.9.8zh and 1.1.0pre1 all are the first tags in their
respective version numbers which contain this commit).

The use of the pctx member there is for forward compatibility with OpenSSL
1.1, which makes its structs opaque. So either you have a version from before
2006 or after 2015 which has opaque structures already but still a version
macro

	OPENSSL_VERSION_NUMBER < 0x10100000L

which I was told was an indicator of the API change.

So, in any case you need to be more specific about your OpenSSL version.
0.x could be anything between 1998 and 2015.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list