libdsm with meson support

Jean-Baptiste Kempf 1906a9e8dc Don't pass -W options in Makefile.am 10 years ago
bin 7636c12c43 bin/dsm: fix double destroy 10 years ago
compat 5003022c1e compat: add support for clock_gettime on Darwin 10 years ago
contrib 33f4a0e556 Fix libtasn1 version detection. Move tasn1 compat types to config.h 11 years ago
doc 425f8c82c4 doxygen: only generate doc for include 10 years ago
include 2652403170 include: move private stuff to src 10 years ago
m4 0483435c39 Add -Wall -Wextra to build flags 10 years ago
src 458d397b5f netbios_ns: use recv_ip for NB query 10 years ago
www 3a25719776 add www/README 10 years ago
.gitignore 92686fb3cb update .gitignore 10 years ago
AUTHORS 5604b40f8d update AUTHORS 10 years ago
COPYING dce710003c Update license and Readme 10 years ago
Makefile.am 1906a9e8dc Don't pass -W options in Makefile.am 10 years ago
NEWS ec54fc4f5e update NEWS 10 years ago
NOTES.md ab4a6299da Adds a NOTES file with some details/discoveries during the implementation 11 years ago
README.md d375ba3a1f Rework README.md 10 years ago
abi_version.sh 69bdc304e1 build: Initial autotools 11 years ago
bootstrap 42cc790f32 Adds a stylish bootstrap script 11 years ago
configure.ac 0483435c39 Add -Wall -Wextra to build flags 10 years ago
libdsm.pc.in e2c5ac4ae1 Fix PKG-CONFIG generation 10 years ago
package_version.sh 69bdc304e1 build: Initial autotools 11 years ago

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 is simpler, and has with 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 with 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
    • No write, 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 !