• Sergei Golubchik's avatar
    cleanup: check_openssl_compatibility() · 93a95c0a
    Sergei Golubchik authored
    CRYPTO_set_mem_functions() works only until the first allocation is done:
    * remove the second CRYPTO_set_mem_functions() call
    * check whether the first CRYPTO_set_mem_functions() call worked
    * stricter memory checks (==1, not >1, etc)
    * as coc_malloc cannot be removed, make the counter a bit cheaper
    * only do the check for OpenSSL 1.1 (because of OpenSSL 1.0 bug)
    93a95c0a
openssl.c 1.8 KB