ssl_session_cmp is not a sort function, can use CRYPTO_memcmp here too.