-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
License, cleanup, updated dependencies
- Loading branch information
1 parent
480ef8f
commit 124c9f7
Showing
12 changed files
with
169 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
cmake-build* | ||
cmake-build* | ||
bin/ | ||
.vscode | ||
build/ | ||
.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"code-block-style": { | ||
"style": "fenced" | ||
}, | ||
"code-fence-style": { | ||
"style": "backtick" | ||
}, | ||
"emphasis-style": { | ||
"style": "asterisk" | ||
}, | ||
"fenced-code-language": { | ||
"allowed_languages": [ | ||
"bash", | ||
"html", | ||
"javascript", | ||
"json", | ||
"markdown", | ||
"text" | ||
], | ||
"language_only": true | ||
}, | ||
"heading-style": { | ||
"style": "atx" | ||
}, | ||
"hr-style": { | ||
"style": "---" | ||
}, | ||
"line-length": { | ||
"strict": false, | ||
"code_blocks": false | ||
}, | ||
"no-duplicate-heading": { | ||
"siblings_only": true | ||
}, | ||
"ol-prefix": { | ||
"style": "ordered" | ||
}, | ||
"proper-names": { | ||
"code_blocks": false, | ||
"names": [ | ||
"Cake.Markdownlint", | ||
"CommonMark", | ||
"JavaScript", | ||
"Markdown", | ||
"markdown-it", | ||
"markdownlint", | ||
"Node.js" | ||
] | ||
}, | ||
"reference-links-images": { | ||
"shortcut_syntax": true | ||
}, | ||
"strong-style": { | ||
"style": "asterisk" | ||
}, | ||
"ul-style": { | ||
"style": "dash" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
n2os-smb-client is released under the BSD 2-Clause License license. | ||
|
||
Included 3rd party software | ||
=========================== | ||
This software includes libsmb2 and json-c, with their original repositories linked | ||
as github modules. | ||
|
||
libsmb2 is released under LGPL 2.1 (or later) for what concerns lib and include directories, | ||
and the 2-Clause BSD License for its examples directory. | ||
Copyright (C) 2016 by Ronnie Sahlberg <ronniesahlberg@gmail.com> | ||
|
||
json-c is release under the MIT license. | ||
Copyright (c) 2009-2012 Eric Haszlakiewicz | ||
Copyright (c) 2004, 2005 Metaparadigm Pte Ltd | ||
|
||
See their respective subdirectories for detailed license information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# docker build -t "smblinux:latest" -f Dockerfile.linux . | ||
# docker run --rm -v "$PWD/bin":/usr/src/n2os-smb-client/bin:Z smblinux:latest | ||
# docker run --rm -ti -v "$PWD/bin":/usr/src/n2os-smb-client/bin:Z smblinux:latest /bin/bash | ||
|
||
# FROM debian:buster-slim # no upx at the moment | ||
FROM debian:bullseye-slim | ||
|
||
WORKDIR /usr/src/n2os-smb-client | ||
COPY . . | ||
|
||
# hadolint ignore=DL3008 | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends git build-essential upx-ucl cmake libssl-dev libkrb5-dev && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* && \ | ||
ldconfig | ||
|
||
CMD [ "./build.linux.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
BSD 2-Clause License | ||
|
||
Copyright (c) 2013-2023, Nozomi Networks Inc. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#/bin/sh | ||
#!/bin/sh | ||
|
||
git submodule update --init --recursive | ||
cmake . -DCMAKE_BUILD_TYPE=Release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#/bin/sh | ||
#!/bin/sh | ||
set -ex | ||
|
||
apt update | ||
apt install -y git build-essential upx cmake libssl-dev libkrb5-dev | ||
# apt update | ||
# apt install -y git build-essential upx-ucl cmake libssl-dev libkrb5-dev | ||
|
||
git submodule update --init --recursive | ||
# git submodule update --init --recursive | ||
cmake . -DCMAKE_BUILD_TYPE=Release | ||
make | ||
strip -s n2os_smb_client | ||
upx --best n2os_smb_client | ||
|
||
cp n2os_smb_client bin/n2os_smb_client.linux | ||
cp n2os_smb_client bin/n2os_smb_client.linux |
Submodule libsmb2
updated
27 files
+18 −0 | .github/workflows/esp_upload_component.yml | |
+1 −1 | CMakeLists.txt | |
+1 −1 | README | |
+1 −1 | configure.ac | |
+5 −0 | idf_component.yml | |
+6 −6 | include/libsmb2-private.h | |
+2 −2 | include/smb2/libsmb2-dcerpc.h | |
+3 −3 | lib/Makefile.PS2_IOP | |
+1 −1 | lib/Makefile.am | |
+1 −1 | lib/compat.c | |
+2 −15 | lib/compat.h | |
+2 −2 | lib/dcerpc-lsa.c | |
+5 −5 | lib/dcerpc-srvsvc.c | |
+21 −21 | lib/dcerpc.c | |
+9 −2 | lib/init.c | |
+9 −9 | lib/libsmb2.c | |
+0 −5 | lib/md5.c | |
+39 −39 | lib/ntlmssp.c | |
+1 −1 | lib/sha.h | |
+3 −3 | lib/smb2-cmd-create.c | |
+4 −4 | lib/smb2-cmd-query-directory.c | |
+2 −2 | lib/smb2-cmd-set-info.c | |
+1 −1 | lib/smb2-data-file-info.c | |
+1 −1 | lib/smb2-data-filesystem-info.c | |
+2 −2 | lib/smb2-data-reparse-point.c | |
+159 −61 | lib/unicode.c | |
+17 −0 | packaging/RPM/libsmb2.spec.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters