Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a couple of "might be used uninitialized" warnings. | Jeremy Allison | 2008-02-05 | 1 | -2/+2 |
| | | | | Jeremy. | ||||
* | Remove smb_read_error global | Volker Lendecke | 2008-02-02 | 1 | -7/+0 |
| | | | | YESS :-) | ||||
* | Remove dependency on get_srv_read_error() from main loop | Volker Lendecke | 2008-02-02 | 1 | -49/+20 |
| | |||||
* | Convert receive_message_or_smb to NTSTATUS | Volker Lendecke | 2008-02-02 | 1 | -36/+43 |
| | |||||
* | Make get_srv_read_error static to process.c | Volker Lendecke | 2008-02-02 | 1 | -1/+1 |
| | |||||
* | read_socket_with_timeout_ntstatus->read_socket_with_timeout | Volker Lendecke | 2008-02-02 | 1 | -3/+2 |
| | |||||
* | Convert receive_smb_talloc to NTSTATUS | Volker Lendecke | 2008-02-02 | 1 | -33/+28 |
| | |||||
* | Convert receive_smb_raw_talloc to NTSTATUS | Volker Lendecke | 2008-02-02 | 1 | -61/+29 |
| | |||||
* | Convert receive_smb_raw_talloc_partial_read to NTSTATUS | Volker Lendecke | 2008-02-02 | 1 | -59/+47 |
| | |||||
* | Convert read_packet_remainder to return NTSTATUS | Volker Lendecke | 2008-02-02 | 1 | -37/+44 |
| | |||||
* | Convert read_packet_remainder to use read_socket_with_timeout_ntstatus | Volker Lendecke | 2008-02-02 | 1 | -8/+20 |
| | |||||
* | Convert read_smb_length_return_keepalive to return NTSTATUS | Volker Lendecke | 2008-02-02 | 1 | -11/+17 |
| | |||||
* | Remove an unused external reference | Volker Lendecke | 2008-01-27 | 1 | -1/+0 |
| | |||||
* | read_socket_with_timeout has timeout=0 handling | Volker Lendecke | 2008-01-23 | 1 | -23/+6 |
| | |||||
* | Remove two unused variables | Volker Lendecke | 2008-01-23 | 1 | -1/+0 |
| | |||||
* | Get the inbuf on talloc_tos() | Volker Lendecke | 2008-01-12 | 1 | -1/+1 |
| | |||||
* | Make use of talloc_pool in the main codepaths. Remove the sub-contexts. | Jeremy Allison | 2008-01-09 | 1 | -1/+1 |
| | | | | Jeremy. | ||||
* | Now conn is part of smb_request, we don't need it as | Jeremy Allison | 2008-01-04 | 1 | -2/+2 |
| | | | | | | an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy. | ||||
* | Refactor the crypto code after a very helpful conversation | Jeremy Allison | 2008-01-04 | 1 | -60/+113 |
| | | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. | ||||
* | Add the capability to set "smb encrypt = required" | Jeremy Allison | 2007-12-27 | 1 | -0/+10 |
| | | | | | | | | on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy. | ||||
* | Add SMB encryption. Still fixing client decrypt but | Jeremy Allison | 2007-12-26 | 1 | -3/+53 |
| | | | | | negotiation works. Jeremy. | ||||
* | Remove last_message completely as it's no longer used. | Jeremy Allison | 2007-12-18 | 1 | -3/+0 |
| | | | | Jeremy. | ||||
* | Three more pstring removals. | Jeremy Allison | 2007-11-11 | 1 | -3/+9 |
| | | | | Jeremy. | ||||
* | Fix some warnings | Volker Lendecke | 2007-11-09 | 1 | -1/+1 |
| | |||||
* | Remove the horror that was the global smb_rw_error. | Jeremy Allison | 2007-11-05 | 1 | -21/+38 |
| | | | | | | | | | | Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy. | ||||
* | Forgot arg type. | Jeremy Allison | 2007-11-04 | 1 | -1/+1 |
| | | | | Jeremy. | ||||
* | Don't believe len returned from read_smb_length_return_keepalive(), | Jeremy Allison | 2007-11-04 | 1 | -1/+1 |
| | | | | | | it may be a UNIX large writeX (which wraps len in that case). Stevef this should fix your 128k write bug. Jeremy. | ||||
* | Remove most of the remaining globals out of lib/util_sock.c. | Jeremy Allison | 2007-11-03 | 1 | -1/+1 |
| | | | | | | I have a plan for dealing with the remaining..... Watch this space. Jeremy. | ||||
* | I can't get away without a 'length' arg. :-). | Jeremy Allison | 2007-11-03 | 1 | -1/+2 |
| | | | | Jeremy. | ||||
* | Stop get_peer_addr() and client_addr() from using global | Jeremy Allison | 2007-11-03 | 1 | -1/+4 |
| | | | | | statics. Part of my library cleanups. Jeremy. | ||||
* | Remove the smb_read_error global variable and replace | Jeremy Allison | 2007-11-03 | 1 | -32/+19 |
| | | | | | it with accessor functions. "One global or pstring a day...." :-). Jeremy. | ||||
* | Fix vfstest link - move socket calls into smbd/process.c | Jeremy Allison | 2007-10-31 | 1 | -0/+288 |
| | | | | | not smbd/server.c Jeremy | ||||
* | Add new parameter, "min receivefile size" (by default set | Jeremy Allison | 2007-10-30 | 1 | -17/+45 |
| | | | | | | | | | to zero). If non-zero, writeX calls greater than this value will be left in the socket buffer for later handling with recvfile (or userspace equivalent). Definition of recvfile for your system is left as an exercise for the reader (I'm working on getting splice working :-). Jeremy. | ||||
* | RIP BOOL. Convert BOOL -> bool. I found a few interesting | Jeremy Allison | 2007-10-18 | 1 | -9/+9 |
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. | ||||
* | [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-test | Gerald (Jerry) Carter | 2007-10-10 | 1 | -15/+14 |
| | |||||
* | r25117: The mega-patch Jerry was waiting for. Remove all pstrings from | Jeremy Allison | 2007-10-10 | 1 | -1/+1 |
| | | | | | | | | the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy. | ||||
* | r24809: Consolidate the use of temporary talloc contexts. | Volker Lendecke | 2007-10-10 | 1 | -6/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker | ||||
* | r24702: Remove the old API pointers | Volker Lendecke | 2007-10-10 | 1 | -496/+308 |
| | |||||
* | r24500: Add check that bcc is correct in an incoming packet. | Jeremy Allison | 2007-10-10 | 1 | -1/+10 |
| | | | | Jeremy. | ||||
* | r24468: Don't forget the +4 for length :-). | Jeremy Allison | 2007-10-10 | 1 | -2/+2 |
| | | | | Jeremy. | ||||
* | r24467: Do range checking on incoming smb request. | Jeremy Allison | 2007-10-10 | 1 | -0/+14 |
| | | | | Jeremy. | ||||
* | r24457: Convert reply_tcon to the new API | Volker Lendecke | 2007-10-10 | 1 | -1/+1 |
| | | | | | | | | | | Jeremy, I really apologize for doing this, but I just wanted to enjoy converting the last SMB call :-) I've left one little task for you there, I'm not certain that checking the inbuf length is correct here. Volker | ||||
* | r24453: Remove the read and write bmpx calls | Volker Lendecke | 2007-10-10 | 1 | -4/+4 |
| | | | | | | | | | | | | | | Talked to both Tridge and Jeremy about this, Tridge said that there is a special error message persuading OS/2 to fall back to other methods. The calls now checked in always return the error message we used to return when "read bmpx = False" was set (the default): ERRSRV, ERRuseSTD. If someone has a reproducable test case where this is really needed, we can always dig it up from version control and convert it to the new API. But that time without that silly parameter, and with a torture test case for "make test" please :-) Volker | ||||
* | r24445: Convert SMBwritebraw. No test suite unfortunately.... I need to ↵ | Jeremy Allison | 2007-10-10 | 1 | -1/+1 |
| | | | | | | write one for this. Jeremy | ||||
* | r24444: Convert reply_find[n]close to the new API | Volker Lendecke | 2007-10-10 | 1 | -2/+2 |
| | |||||
* | r24443: Convert reply_search/fclose to the new API | Volker Lendecke | 2007-10-10 | 1 | -4/+4 |
| | |||||
* | r24442: Convert reply_copy to the new API | Volker Lendecke | 2007-10-10 | 1 | -1/+1 |
| | |||||
* | r24441: Convert reply_ioctl to the new API | Volker Lendecke | 2007-10-10 | 1 | -1/+1 |
| | |||||
* | r24440: Convert the reply_sendXX functions to the new API | Volker Lendecke | 2007-10-10 | 1 | -4/+4 |
| | |||||
* | r24439: Convert reply_get/setattrE to the new API | Volker Lendecke | 2007-10-10 | 1 | -2/+2 |
| |