Both
Could not set TLS/SSL certificate reference
Setting the certificate reference pointer fails, SSLSetCheckCertificateRef() returns fail.
Validate the arguments of SSLSetCheckCertificateRef() and make sure the session pointer is correct.
Applies for the platforms that do not use OpenSSL.
15.5