Lines Matching refs:ssl_handle
105 static void ftp_ssl_shutdown(ftpbuf_t *ftp, php_socket_t fd, SSL *ssl_handle);
184 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close()
308 ftp->ssl_handle = SSL_new(ctx); in ftp_login()
309 SSL_set_app_data(ftp->ssl_handle, ftp); /* Needed for ftp_ssl_new_session_cb */ in ftp_login()
312 if (ftp->ssl_handle == NULL) { in ftp_login()
317 SSL_set_fd(ftp->ssl_handle, ftp->fd); in ftp_login()
320 res = SSL_connect(ftp->ssl_handle); in ftp_login()
321 err = SSL_get_error(ftp->ssl_handle, res); in ftp_login()
331 SSL_shutdown(ftp->ssl_handle); in ftp_login()
351 SSL_shutdown(ftp->ssl_handle); in ftp_login()
352 SSL_free(ftp->ssl_handle); in ftp_login()
1399 handle = ftp->ssl_handle; in single_send()
1402 handle = ftp->data->ssl_handle; in single_send()
1512 handle = ftp->ssl_handle; in my_recv()
1515 handle = ftp->data->ssl_handle; in my_recv()
1797 ctx = SSL_get_SSL_CTX(ftp->ssl_handle); in data_accept()
1803 data->ssl_handle = SSL_new(ctx); in data_accept()
1804 if (data->ssl_handle == NULL) { in data_accept()
1809 SSL_set_fd(data->ssl_handle, data->fd); in data_accept()
1812 SSL_copy_session_id(data->ssl_handle, ftp->ssl_handle); in data_accept()
1819 SSL_free(data->ssl_handle); in data_accept()
1824 SSL_set_app_data(data->ssl_handle, ftp); /* Needed for ftp_ssl_new_session_cb */ in data_accept()
1825 res = SSL_set_session(data->ssl_handle, session); in data_accept()
1828 SSL_free(data->ssl_handle); in data_accept()
1833 res = SSL_connect(data->ssl_handle); in data_accept()
1834 err = SSL_get_error(data->ssl_handle, res); in data_accept()
1843 SSL_shutdown(data->ssl_handle); in data_accept()
1863 SSL_shutdown(data->ssl_handle); in data_accept()
1864 SSL_free(data->ssl_handle); in data_accept()
1880 static void ftp_ssl_shutdown(ftpbuf_t *ftp, php_socket_t fd, SSL *ssl_handle) { in ftp_ssl_shutdown() argument
1890 err = SSL_shutdown(ssl_handle); in ftp_ssl_shutdown()
1901 nread = SSL_read(ssl_handle, buf, sizeof(buf)); in ftp_ssl_shutdown()
1903 err = SSL_get_error(ssl_handle, nread); in ftp_ssl_shutdown()
1936 (void)SSL_free(ssl_handle); in ftp_ssl_shutdown()
1952 ftp_ssl_shutdown(ftp, data->listener, data->ssl_handle); in data_close()
1962 ftp_ssl_shutdown(ftp, data->fd, data->ssl_handle); in data_close()