libdsm with meson support

Alexandre Janniaux c790283ab6 meson: check clockid_t availability 5 年 前
bin a4c7e2bb76 Print an understandable error if netbios resolving fails in the dsm test tool 6 年 前
compat 45e48b7772 compat: Don't use _pipe when building for winstore 6 年 前
contrib 1cfca49b1b contrib: Remove superfluous config.h inclusion 7 年 前
doc 425f8c82c4 doxygen: only generate doc for include 10 年 前
include bdf7de7a06 Bump ABI revision 7 年 前
m4 0483435c39 Add -Wall -Wextra to build flags 10 年 前
src 68dc318713 build: fix nl_langinfo detection on Android 6 年 前
www 68d57b81b8 Added stdlib.h 9 年 前
.gitignore 9894494bcb Update .gitignore for .exe 9 年 前
.mailmap 60744f1558 Update mailmap for macromizer 9 年 前
AUTHORS 1fdde416f4 Update AUTHORS 9 年 前
COPYING dce710003c Update license and Readme 10 年 前
Makefile.am a056a5726c Fix make distcheck 5 年 前
NEWS 0e6d0ae3d3 Bump ABI revision 5 年 前
NOTES.md 162ab2b352 Fix NOTES.md to actually match markdown syntax 9 年 前
README.md 5c874e116c Correct a few typos 8 年 前
abi_version.sh 69bdc304e1 build: Initial autotools 11 年 前
bootstrap 70b038c85f allow to run bootstrap from build-folder 9 年 前
config.h.meson bc5aa5f240 meson: use config.h.meson 5 年 前
configure.ac 0e6d0ae3d3 Bump ABI revision 5 年 前
libdsm.pc.in 75a5f417c6 Simplify package version management 6 年 前
meson.build c790283ab6 meson: check clockid_t availability 5 年 前

README.md

liBDSM

lib Defective SMb (libDSM) is a SMB protocol client implementation in pure old C, with a lot less features than Samba but with a much simpler, and a more permissive license (currently LGPL + proprietary).

The initial goal of this project is to have a library that can access most SMB shares to read files and that has a license compatible with the iOS/Android/WinRT appstores in order to integrate it into VLC for iOS and VLC for Android.

This library is also licensable under a proprietary license, if LGPL is not good enough for you.

The lib is provided as a static library or as a dynamically linked library. A few useless (yet) utils are also provided, mostly for testing purpose.

Features

Here's a list of the currently supported features:

  • NETBIOS
    • Basic bi-directionnal NETBIOS name resolution
    • Hacky LAN SMB servers discovery (Listing all the smb servers on the LAN, no WINS, etc.)
    • Basic NETBIOS Session transport layer
  • SMB
    • Support only required parts of 'NT LM 0.12' (aka CIFS?) dialect.
    • User based authentication
    • List Shares
    • Browse folders
    • Read file
    • Write file
    • Delete file
    • Delete empty folder
    • Move and rename file/folder
    • Create new folder
    • No copy, lock, RPCs, etc. [Hum... yet]

Support

liBDSM has been tested/reported to work with the following devices/OSes:

  • Windows 7
  • Windows 8/8.1
  • Samba
  • smbX (OSX new smb implementation)
  • QNAP TS-212
  • A cheap NAS whose name i can't remember :)

Feel free to contribute items to this list (or network trace of not working devices)

Building

Requirements

  • A Unix system with a bash-compatible shell
  • C99 C compiler
  • (GNU) Make
  • Autotools
  • libc with iconv
  • getopt_long
  • GNU tasn1 compiler/support library

The build dependencies can be installed on Debian(-based) systems using

sudo apt-get install build-essential autoconf libtool pkg-config libtasn1-3-dev libtasn1-3-bin libbsd-dev

HowTo

$> ./bootstrap
$> ./configure --prefix=/your/prefix
$> make
$> make install # maybe

TODO

  • HEAVILY refactor. Any help is welcome.
  • Support more of the SMBv2 and v3 protocols.

Contributing

  • Fork videolabs/libdsm
  • Make a feature branch
  • Commits your work there
  • Make a pull request
  • ...
  • Profit !