Lines Matching refs:ssl_handle

105 static void		ftp_ssl_shutdown(ftpbuf_t *ftp, php_socket_t fd, SSL *ssl_handle);
179 ftp_ssl_shutdown(ftp, ftp->fd, ftp->ssl_handle); in ftp_close()
285 ftp->ssl_handle = SSL_new(ctx); in ftp_login()
288 if (ftp->ssl_handle == NULL) { in ftp_login()
293 SSL_set_fd(ftp->ssl_handle, ftp->fd); in ftp_login()
296 res = SSL_connect(ftp->ssl_handle); in ftp_login()
297 err = SSL_get_error(ftp->ssl_handle, res); in ftp_login()
307 SSL_shutdown(ftp->ssl_handle); in ftp_login()
327 SSL_shutdown(ftp->ssl_handle); in ftp_login()
328 SSL_free(ftp->ssl_handle); in ftp_login()
1378 handle = ftp->ssl_handle; in single_send()
1381 handle = ftp->data->ssl_handle; in single_send()
1491 handle = ftp->ssl_handle; in my_recv()
1494 handle = ftp->data->ssl_handle; in my_recv()
1776 ctx = SSL_get_SSL_CTX(ftp->ssl_handle); in data_accept()
1782 data->ssl_handle = SSL_new(ctx); in data_accept()
1783 if (data->ssl_handle == NULL) { in data_accept()
1788 SSL_set_fd(data->ssl_handle, data->fd); in data_accept()
1791 SSL_copy_session_id(data->ssl_handle, ftp->ssl_handle); in data_accept()
1795 session = SSL_get_session(ftp->ssl_handle); in data_accept()
1798 SSL_free(data->ssl_handle); in data_accept()
1803 res = SSL_set_session(data->ssl_handle, session); in data_accept()
1806 SSL_free(data->ssl_handle); in data_accept()
1811 res = SSL_connect(data->ssl_handle); in data_accept()
1812 err = SSL_get_error(data->ssl_handle, res); in data_accept()
1821 SSL_shutdown(data->ssl_handle); in data_accept()
1841 SSL_shutdown(data->ssl_handle); in data_accept()
1842 SSL_free(data->ssl_handle); in data_accept()
1858 static void ftp_ssl_shutdown(ftpbuf_t *ftp, php_socket_t fd, SSL *ssl_handle) { in ftp_ssl_shutdown() argument
1868 err = SSL_shutdown(ssl_handle); in ftp_ssl_shutdown()
1879 nread = SSL_read(ssl_handle, buf, sizeof(buf)); in ftp_ssl_shutdown()
1881 err = SSL_get_error(ssl_handle, nread); in ftp_ssl_shutdown()
1914 (void)SSL_free(ssl_handle); in ftp_ssl_shutdown()
1930 ftp_ssl_shutdown(ftp, data->listener, data->ssl_handle); in data_close()
1940 ftp_ssl_shutdown(ftp, data->fd, data->ssl_handle); in data_close()