nnection is already closed. */
            break;

        default:
            printf(&quot;Unknown stream failure\n&quot;);
            break;
        }
        /*
         * If the failure is due to a verification error we can get more
         * information about it from SSL_get_verify_result().
         */
        if (SSL_get_verify_result(ssl) != X509_V_OK)
            printf(&quot;Verify error: %s\n&quot;,
                X509_verify_cert_error_string(SSL_get_verify_result(ssl)));
        return -1;
