summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/request.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-02Change uint_t to unsigned int in source4Matt Kraai1-11/+11
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-09-19s4-smbd: minimise includes in smbd/ and smb_serverAndrew Tridgell1-1/+0
2009-03-01s4: Use same function signature for convert_* as s3.Jelmer Vernooij1-6/+6
2009-03-01Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij1-2/+2
consistency with Samba 3.
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-24Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij1-2/+2
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij1-1/+1
functions.
2008-09-30s4:smb_server/smb: FLAGS2_SMB_SECURITY_SIGNATURES should only be echoed, not ↵Stefan Metzmacher1-5/+6
set always metze
2008-09-29NetApp found that we never set the smb signing flags2.Andrew Bartlett1-0/+4
This was found during testing at the CIFS plugfest. No other client seems to honour or use this bit, but it is quite ligitimately required by the spec. Andrew Bartlett
2008-04-17fix the overflow/wrap checks in Samba4 for new gcc optimisation behaviorAndrew Tridgell1-3/+3
The approach I have used is as set out in https://www.securecoding.cert.org/confluence/display/seccode/ARR38-C.+Do+not+add+or+subtract+an+integer+to+a+pointer+if+the+resulting+value+does+not+refer+to+an+element+within+the+array (This used to be commit 92d5fb531db39be655f0cbd2d75b5f675a0a4cfa)
2008-02-21Remove more global_loadparm instance.sJelmer Vernooij1-1/+1
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-14Fixed SMB2 rename operations from Vista clientsAndrew Tridgell1-2/+5
We needed a flag in bufinfo to mark packets as SMB2, as it seems that SMB2 uses a different format for the RenameInformation buffer than SMB does Also handle the fact that SMB2 clients give the full path to the target file in the rename, not a relative path (This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-25/+36
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2007-12-21r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij1-3/+4
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21r26316: Use contexts for conversion functions.Jelmer Vernooij1-8/+8
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-10-10r25551: Convert to standard bool type.Jelmer Vernooij1-8/+8
(This used to be commit c9651e2c5c078edee7b91085e936a93625c8d708)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r17361: check that file handles are only accessableStefan Metzmacher1-0/+11
by the correct session in the SMB frontend server metze (This used to be commit 8a5bc18c5a3fa01848c02fdd855f35d6402866f3)
2007-10-10r17012: don't try to send any data when the socket is gone already...Stefan Metzmacher1-0/+6
(fixes crash bugs) metze (This used to be commit b7418aec33033577de2420c70a8b94a2fb7901dd)
2007-10-10r16950: remove the smb mid from the ntvfs layer and keep a list of pendingStefan Metzmacher1-0/+8
requests on the smbsrv_connection, to be able to match then on ntcancel metze (This used to be commit 04f0d3d03179b6060fd013b867d13caa92ec6460)
2007-10-10r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in ↵Stefan Metzmacher1-1/+1
the smb2srv code metze (This used to be commit 6c304a1a5f5dc6b2d3774682303874444a59b07d)
2007-10-10r15734: This is a major change to the NTVFS subsystem:Stefan Metzmacher1-1/+91
- to use a struct ntvfs_handle instead of a uint16_t fnum. (to make it independend from the frontend protocol) - the allocation of handles now is provided by the frontend (smbsrv_*) via callbacks and not by each backend module - this also makes sure that file handles are only passed to the ntvfs subsystem when the tcon and session matches, so modules can rely on this and need to check this. - this allows multiple modules in the ntvfs module chain to allocate file handles. This can be used for virtual files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"... - also this will make SMB2 with 128 bit file handles possible metze (This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
2007-10-10r15304: Fix smbd build, more updates on getting --enable-dso to build againJelmer Vernooij1-0/+1
(This used to be commit 3ef9326386ba1c210166302cbcf02d2ed3f19944)
2007-10-10r15191: Avoid uint_t as it's not standard.Jelmer Vernooij1-3/+3
(This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
2007-10-10r14937: fix a crash that can be caused by a notify triggering during a shareAndrew Tridgell1-0/+5
disconnect (This used to be commit 85d70f1c150b6c8370deeb188dbf9e87c8b8d7ac)
2007-10-10r14541: separate smbsrv_request and ntvfs_request,Stefan Metzmacher1-8/+1
with this it's now possible to write a ntvfs_test programm like the vfstest in samba3 also smb2 support will be possible later metze (This used to be commit 7253153691e35cd206346fbd4e9b9f95c042f602)
2007-10-10r14538: ok, I have better used make valgrindtest my self...Stefan Metzmacher1-1/+1
the 3 bytes for WordCount and ByteCount are included in MIN_SMB_SIZE... metze (This used to be commit 4ff3fb35e88643a4637bfca032a6505f9dce3843)
2007-10-10r14526: fix the size of the output buffer, we need 1 byte for the Word countStefan Metzmacher1-1/+1
now smbsrv_setup_reply() and req_setup_chain_reply() do the same thing tridge: can you please check if this is correct, I wonder why we don't got valgrind errors... as the over allocation is disabled currently metze (This used to be commit 3441a4a74fb324a4dfbca13219df4c55ebcfbf6c)
2007-10-10r14487: split smbsrv_request into two parts, one will be moved to ntvfs_requestStefan Metzmacher1-3/+1
but I don't to get the commit to large, to I'll do this tomorrow... metze (This used to be commit 10e627032d7d04f1ebf6efed248c426614f5aa6f)
2007-10-10r13877: remove smbsrv_send_dos_error() and use ↵Stefan Metzmacher1-19/+0
smbsrv_send_error(..,NT_STATUS_DOS()) metze (This used to be commit 60d7920527cd0e4142427fa59b9e617d99e3d984)
2007-10-10r13870: prefix more functions with smbsrv_Stefan Metzmacher1-15/+15
metze (This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
2007-10-10r13868: remove useless talloc_free() wrapperStefan Metzmacher1-9/+1
metze (This used to be commit bd3162e6a7f154630c2d88be70ce19e8dd977133)
2007-10-10r13856: fixed a misleading commentAndrew Tridgell1-1/+1
(This used to be commit af6606fe987fd8ef15e3ed03e71e92e7a7484ce7)
2007-10-10r13620: initialize the CMD with 0 tooStefan Metzmacher1-0/+1
metze (This used to be commit 7cf1423bc850aca93453d337b49ba593a034000d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-2/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.Jelmer Vernooij1-0/+1
(This used to be commit 87f665a1d5ba74289974bf9d8f9441c162e6f1b1)
2007-10-10r11786: move all SMB protocol specific stuff to smb_server/smb/Stefan Metzmacher1-0/+675
metze (This used to be commit 5fea278cb65076cea71bb6c921e51c4feffc37d7)