summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-14 07:21:48 +0000
committerTim Potter <tpot@samba.org>1999-04-14 07:21:48 +0000
commitbc6858805b280dd0ff5393350b699176e138e39f (patch)
tree24cef950ef1ef8d4d5c60deae5019a078ced19ec /source3/smbd
parent069f1b5ff24402aa0954a19e5ed36b53fa3ad2e0 (diff)
downloadsamba-bc6858805b280dd0ff5393350b699176e138e39f.tar.gz
samba-bc6858805b280dd0ff5393350b699176e138e39f.tar.bz2
samba-bc6858805b280dd0ff5393350b699176e138e39f.zip
Removed unused vfs_read_data() function at the request of tridge.
Removed unnecessary SSL stuff from vfs_write_data(). (This used to be commit fdbe79c1c3061c844c1eb859e3e40634a098a8f3)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index fdff87496b..7304229f8d 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -217,46 +217,6 @@ BOOL vfs_file_exist(connection_struct *conn,char *fname,SMB_STRUCT_STAT *sbuf)
}
/****************************************************************************
- read data from the client vfs, reading exactly N bytes.
-****************************************************************************/
-ssize_t vfs_read_data(files_struct *fsp,char *buffer,size_t N)
-{
- ssize_t ret;
- size_t total=0;
- int fd = fsp->fd_ptr->fd;
- extern int smb_read_error;
-
- smb_read_error = 0;
-
- while (total < N)
- {
-#ifdef WITH_SSL
- DEBUG(0, ("WARNING: read_data() called with SSL enabled\n"));
- if(fd == sslFd){
- ret = SSL_read(ssl, buffer + total, N - total);
- }else{
- ret = read(fd,buffer + total,N - total);
- }
-#else /* WITH_SSL */
- ret = fsp->conn->vfs_ops.read(fd,buffer + total,N - total);
-#endif /* WITH_SSL */
-
- if (ret == 0)
- {
- smb_read_error = READ_EOF;
- return 0;
- }
- if (ret == -1)
- {
- smb_read_error = READ_ERROR;
- return -1;
- }
- total += ret;
- }
- return (ssize_t)total;
-}
-
-/****************************************************************************
write data to a fd on the vfs
****************************************************************************/
ssize_t vfs_write_data(files_struct *fsp,char *buffer,size_t N)
@@ -267,16 +227,7 @@ ssize_t vfs_write_data(files_struct *fsp,char *buffer,size_t N)
while (total < N)
{
-#ifdef WITH_SSL
- DEBUG(0, ("WARNING: write_data called with SSL enabled\n"));
- if(fd == sslFd){
- ret = SSL_write(ssl,buffer + total,N - total);
- }else{
- ret = write(fd,buffer + total,N - total);
- }
-#else /* WITH_SSL */
ret = fsp->conn->vfs_ops.write(fd,buffer + total,N - total);
-#endif /* WITH_SSL */
if (ret == -1) return -1;
if (ret == 0) return total;