Lines Matching refs:ssl_handle
51 SSL *ssl_handle; member
94 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in handle_ssl_error()
119 SSL_set_shutdown(sslsock->ssl_handle, SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN); in handle_ssl_error()
184 didwrite = SSL_write(sslsock->ssl_handle, buf, count); in php_openssl_sockop_write()
216 nr_bytes = SSL_read(sslsock->ssl_handle, buf, count); in php_openssl_sockop_read()
220 stream->eof = (retry == 0 && errno != EAGAIN && !SSL_pending(sslsock->ssl_handle)); in php_openssl_sockop_read()
253 SSL_shutdown(sslsock->ssl_handle); in php_openssl_sockop_close()
256 if (sslsock->ssl_handle) { in php_openssl_sockop_close()
257 SSL_free(sslsock->ssl_handle); in php_openssl_sockop_close()
258 sslsock->ssl_handle = NULL; in php_openssl_sockop_close()
314 if (sslsock->ssl_handle) { in php_openssl_setup_crypto()
394 sslsock->ssl_handle = php_SSL_new_from_context(sslsock->ctx, stream TSRMLS_CC); in php_openssl_setup_crypto()
395 if (sslsock->ssl_handle == NULL) { in php_openssl_setup_crypto()
402 if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) { in php_openssl_setup_crypto()
409 …} else if (((php_openssl_netstream_data_t*)cparam->inputs.session->abstract)->ssl_handle == NULL) { in php_openssl_setup_crypto()
412 …SSL_copy_session_id(sslsock->ssl_handle, ((php_openssl_netstream_data_t*)cparam->inputs.session->a… in php_openssl_setup_crypto()
433 SSL_set_tlsext_host_name(sslsock->ssl_handle, sslsock->sni); in php_openssl_enable_crypto()
439 SSL_set_connect_state(sslsock->ssl_handle); in php_openssl_enable_crypto()
441 SSL_set_accept_state(sslsock->ssl_handle); in php_openssl_enable_crypto()
462 n = SSL_connect(sslsock->ssl_handle); in php_openssl_enable_crypto()
464 n = SSL_accept(sslsock->ssl_handle); in php_openssl_enable_crypto()
490 int err = SSL_get_error(sslsock->ssl_handle, n); in php_openssl_enable_crypto()
516 peer_cert = SSL_get_peer_certificate(sslsock->ssl_handle); in php_openssl_enable_crypto()
518 …if (FAILURE == php_openssl_apply_verification_policy(sslsock->ssl_handle, peer_cert, stream TSRMLS… in php_openssl_enable_crypto()
519 SSL_shutdown(sslsock->ssl_handle); in php_openssl_enable_crypto()
552 sslsock->ssl_handle); in php_openssl_enable_crypto()
592 SSL_shutdown(sslsock->ssl_handle); in php_openssl_enable_crypto()
706 n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); in php_openssl_sockop_set_option()
708 int err = SSL_get_error(sslsock->ssl_handle, n); in php_openssl_sockop_set_option()