summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2007-12-03Remove pstring from clirap2 by completely rewriting the damnJeremy Allison1-1684/+2211
thing :-). Now with added paranoia. Jeremy. (This used to be commit b6b5f92bc9457220df384bdb13530c393d294ce7)
2007-12-03Add decode_wkssvc_join_password_buffer().Günther Deschner1-0/+29
Guenther (This used to be commit ba2a544baf1e1cc3652512ed5df2bb408fa8bdfd)
2007-12-01Fix some C++ warningsVolker Lendecke1-1/+1
(This used to be commit 156c7f10bb63a610f85b52242cfd1b67bfa73c29)
2007-12-01Fix an uninitialized variableVolker Lendecke1-1/+1
(This used to be commit edce7bd7a9dd1064ba8aec34b334c7395228f40b)
2007-11-30Fix missing error cleanup noticed by Derrell.Jeremy Allison1-3/+6
Jeremy. (This used to be commit 37f00926c29c22f27e7192c1fff0a08ce136cb86)
2007-11-30Ensure we have 2 bytes of zeros as a pad-buffer at theJeremy Allison1-40/+85
end of all returned trans/trans2/nttrans client replies. Not included in a count - for safety purposes. Jeremy. (This used to be commit 3e65fa5bcf5d1af3983f2e576698eccaad79fcda)
2007-11-30Whitespace cleanup.Jeremy Allison1-209/+201
Jeremy. (This used to be commit 4dfe19be1c3a63b8517c6580c9cd363c7271693d)
2007-11-30Remove pstring from clirap.c.Jeremy Allison1-118/+187
Jeremy. (This used to be commit 6e27663cb44a79f729fa4366e000c43383f6d1b7)
2007-11-30Removed all pstrings from libsmbclient. Derryl pleaseJeremy Allison1-46/+65
check. Passes valgrind tests I've run in examples/libsmbclient. Jeremy. (This used to be commit 9d0034faed939a4534637696f1631ac2da60e4a3)
2007-11-30Merge join error codes from Samba 4.Günther Deschner1-0/+3
Guenther (This used to be commit 88a01bd810c36631272c5db727334bdc6f12f07d)
2007-11-30Make encode_wkssvc_join_password_buffer() non-static.Günther Deschner1-4/+4
Guenther (This used to be commit 258ef17a266548bc02bed1870fd4ef5a272300b3)
2007-11-30Merge encode_wkssvc_join_password_buffer() from samba4.Günther Deschner1-0/+36
Guenther (This used to be commit b1d36cdb86978cb31d470fccf2dc24d366835c36)
2007-11-30Add talloc versions of all the next_token() functions.Jeremy Allison1-605/+728
Now I can really start removing fixed length strings... Jeremy. (This used to be commit 0ae61e26547e594e94037d4474a008221e5df8cf)
2007-11-29Remove pstrings from clifile.c.Jeremy Allison1-25/+36
Jeremy. (This used to be commit d5658914c2d6ec878d9a11f8a1fa57f1697362e3)
2007-11-29Remove PSTRING_LEN from smbd/ nmbd/.Jeremy Allison3-318/+439
Remove pstring from libsmb/clidfs.c except for a nasty hack (that will be removed when pstrings are gone from client/). Jeremy. (This used to be commit cc257b71d13daa47e6f2315d0f07a60eb4aaeca6)
2007-11-29Remove the explicit TALLOC_CTX * from cli_struct.Jeremy Allison9-59/+85
Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
2007-11-29Remove pstrings. Ensure we validate offsets.Jeremy Allison1-64/+132
Jeremy. (This used to be commit ff06cc34e66a18ba71dd54f6c78b05a45b9f2d85)
2007-11-28Remove unused code (and pstring).Jeremy Allison1-92/+0
Jeremy. (This used to be commit a261a61226248b41be22dd4f2873b5ed82bc2a24)
2007-11-27Remove pstrings from asn1.c.Jeremy Allison1-11/+28
Jeremy. (This used to be commit 82f393e60378eb42ddcc740241902eee495719d3)
2007-11-27Remove pstrings from namequery.c.Jeremy Allison1-24/+47
Jeremy. (This used to be commit 71ccd0c42e0ae66172ca5797be3d3a01f4a67a69)
2007-11-27Remove some staticsVolker Lendecke1-1/+1
(This used to be commit 1fab16ffb888cd4ec18e52d9da33976a67a5d104)
2007-11-25In libsmbclient, map NT_STATUS_OBJECT_PATH_NOT_FOUND to ENOENTVolker Lendecke1-0/+1
Thanks to SATOH Fumiyasu! This fixes bug 4974 (This used to be commit 41e07682dc1fa535ddaf405efa26fabb33c8bbf9)
2007-11-23Make remote_password_change return malloced error stringsVolker Lendecke1-31/+38
This fixes a segfault in smbpasswd -r (This used to be commit 49949f0b85007c7c2b3c340c12f3d18909862135)
2007-11-20More pstring removal....Jeremy Allison1-47/+98
Jeremy. (This used to be commit 809f5ab4c595740b28425e1667e395a6058b76a8)
2007-11-19Always check return from push_ascii.Jeremy Allison1-1/+6
Jeremy. (This used to be commit 9c3d10521e691169cfbb8b728f123911c3c970ae)
2007-11-19Add stackframes to public libsmbclient functionsVolker Lendecke1-64/+245
As we use talloc_tos() in inner libsmbclient/ functions more and more, we need to make sure not to create memleaks by not free'ing talloc stackframes. This patch wraps all calls in libsmbclient.c that are publically exported into a talloc_stackframe()/talloc_free() pair. Jeremy, Derrell, can you check this? Thanks, Volker (This used to be commit db9fa472a89eb78a7b1f7cabcf195331c3b448d9)
2007-11-19Remove pstring from nmbd.Jeremy Allison1-12/+34
Jeremy. (This used to be commit a317f70c229f7730279eaa323f7ebfd499257f76)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-2/+6
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-11-12Remove all pstrings from smbd/chgpasswd.c.Jeremy Allison1-11/+25
Jeremy. (This used to be commit eaf14c701b08e9eff5b94bf57af68cb29142d7fc)
2007-11-11Some pstring removalVolker Lendecke4-40/+61
Hi! Feel free to push :-) Volker From 7fae6b3709a973bd0a5a13d3f5c880c61d5e35de Mon Sep 17 00:00:00 2001 From: Volker Lendecke <vl@sernet.de> Date: Sun, 11 Nov 2007 15:28:59 +0100 Subject: [PATCH] Remove some static pstrings (This used to be commit c3a66b4ee97a902c5cf43c3bb145541849a029ed)
2007-11-11Remove a static fstringVolker Lendecke1-11/+12
Feel free to push :-) Volker (This used to be commit f213556f50de4a28b5c5d2e1e762013837feb722)
2007-11-11Remove a static fstringVolker Lendecke1-1/+1
I'm not sure why this used to be static, to me it seems that every time this variable is overwritten. I just don't see how name_status_find() could return true and not overwrite name. Can someone please review this and potentially check it in? Thanks, Volker (This used to be commit 329c688e4a9e69b71996fd1b0eee2202a849f3f5)
2007-11-09Fix some warningsVolker Lendecke1-1/+2
(This used to be commit 0a1f524e8cce9bbe4fd10467c1f64f7a8862d298)
2007-11-09Remove the silly "user_socket_options" global variableVolker Lendecke1-4/+2
This is better done with a 'lp_do_parameter(-1, "socket options", ..); (This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
2007-11-09pstring removalVolker Lendecke1-4/+5
(This used to be commit 0ee896827215a24e70a4ac6bde5ded13f9497296)
2007-11-08Remove more pstring/fstrings.Jeremy Allison1-4/+1
Jeremy. (This used to be commit 7a1de5b44e84a7474e78518c6ba33b3fedc42b5f)
2007-11-08Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison1-20/+24
Jeremy. (This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-11-08add win_errstr() as wrapper of dos_errstr().Stefan Metzmacher1-0/+6
this makes merging stuff from samba4 easier metze (This used to be commit cfbdb133b998a704c6c167b9b4b56370f4ff666d)
2007-11-06Ensure we don't use massive writes in pipe mode.Jeremy Allison1-2/+3
Jeremy. (This used to be commit 47640fb20e42f226e7ea104076fd52547bfe1abb)
2007-11-05Remove the horror that was the global smb_rw_error.Jeremy Allison1-11/+12
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. (This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
2007-11-03Remove the smb_read_error global variable and replaceJeremy Allison3-22/+21
it with accessor functions. "One global or pstring a day...." :-). Jeremy. (This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
2007-11-02Change the client library to write directly out ofJeremy Allison2-35/+136
the incoming buffer in the non-signed case. Speeds up writes by over 10% or so. Complete the server recvfile implementation. Jeremy. (This used to be commit 81ca5853b2475f123faab3b550f0a7b24ae3c208)
2007-11-01Fix for bug 5021Volker Lendecke1-1/+5
This is a different fix than the bug reporter (Evgeniy Dushistov <dushistov at mail.ru>, thanks!) created, but it lives without the boolean status variable. Untested so far, but I can not add attachments to bugs right now. But to me this looks really obvious. (This used to be commit b481abf5914dcafe5642c4d9394d02603e905bbb)
2007-10-30Our userlevel SMBwriteX call is non-standard in that itJeremy Allison1-8/+10
sometimes uses a 12-word write and doesn't include a pad byte (as Windows does). Fix this so that we are identical to Windows clients. This will make recvfile processing much easier to detect (as we can just read a standard writeX header length to decide). Jeremy. (This used to be commit 3d3d1b806aef3617abaac46daf230ed32076e2ce)
2007-10-29Fix the setup_kaddr() call to cope with IPv6.Jeremy Allison1-8/+34
This is the last obvious change I can see. At this point we can start claiming IPv6 support (Hurrah !:-). Jeremy. (This used to be commit bda8c0bf571c994b524a9d67eebc422033d17094)
2007-10-29Change our DNS code to cope with AAAA records. A6 recordsJeremy Allison2-12/+11
look like a nightmare to use, so ignore them for now. Jeremy. (This used to be commit 814daded90781dc5a5bdd522ea8cfe5d47e6d7a7)
2007-10-27Change all occurrences of zero_addr(&ss,AF_INET) toJeremy Allison5-12/+12
zero_addr(&ss). All current uses were always of the AF_INET form, so simplify the call. If in the future we need to zero an addr to AF_INET6 this can be done separately. Jeremy. (This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
2007-10-26Move the horrible hack for link local addresses out of namequery.cJeremy Allison1-26/+0
and into util_sock.c. is_ipaddress() now copes with link:local:v6%ifname addresses, as does interpret_string_addr(). Jeremy (This used to be commit a3f7db3d30ced566c8340696914f1be3293a9c5b)
2007-10-25Fix resolve name to resolve IPv6 addresses of link-local%ifaddrJeremy Allison1-0/+26
Jeremy. (This used to be commit e6609cab732d5cd5cc9a5ae50aee15147f2ec6ec)
2007-10-25Fix cast typo - would have broken all dgram sends.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 17ea899f39e80241afa235cb933695ba6bae846a)