Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
add Makefile for building on linux/mono system
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Vinall <[email protected]>
  • Loading branch information
Matt Vinall committed Oct 5, 2016
1 parent 060f53b commit e5dd266
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 4

[Makefile]
indent_style = tab
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.user
*.userosscache
*.sln.docstates
.vscode

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Expand Down Expand Up @@ -242,4 +243,4 @@ ModelManifest.xml
.paket/paket.exe

# FAKE - F# Make
.fake/
.fake/
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DTLS_VERSION:=1.0.19

.PHONY: all
all: src/DTLS.Net/bin/Release/DTLS.Net.$(DTLS_VERSION).nupkg

src/DTLS.Net/bin/Release/DTLS.Net.$(DTLS_VERSION).nupkg:
docker run -v $(PWD):/app --entrypoint /app/pack.sh creatordev/dotnet-mono-base Release src/DTLS.Net

.PHONY: clean
clean:
rm -rf src/DTLS.Net/bin src/DTLS.Net/obj src/DTLS.Net/project.lock.json
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

## DTLS.Net

[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause)
[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause)

DTLS.Net was developed for use in an [implementation](https://github.com/Creatordev/DeviceServer) of the Open Mobile Alliance's (OMA) Lightweight Machine to Machine protocol (LWM2M). For this reason it only supports the following cipher suites:
DTLS.Net was developed for use in an [implementation](https://github.com/Creatordev/DeviceServer) of the Open Mobile Alliance's (OMA) Lightweight Machine to Machine protocol (LWM2M). For this reason it only supports the following cipher suites:

* TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8
* TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Expand All @@ -16,38 +16,38 @@ DTLS.Net was developed for use in an [implementation](https://github.com/Creator

### Limitations

Since the client is only required to serve for the above project it has several inherent limitations:
Since the client is only required to serve for the above project it has several inherent limitations:

1. No automatic retransmition
2. No support for fragmentation of handshake packets
3. Does not verify Server Certificates (against CA)
1. No automatic retransmission
2. No support for fragmentation of handshake packets
3. Does not verify Server Certificates (against CA)

The server currently also has the following limitations:
The server currently also has the following limitations:

1. Does not verify client Certificates
2. No support for fragmentation of handshake packets
1. Does not verify client Certificates
2. No support for fragmentation of handshake packets

Hopefully over time these will be implemented, in the meantime we hope this is still useful.

----

### Contributing

We welcome all contributions to this project and we give credit where it's due. Anything from enhancing functionality to improving documentation and bug reporting - it's all good.
We welcome all contributions to this project and we give credit where it's due. Anything from enhancing functionality to improving documentation and bug reporting - it's all good.

Find out more in the [contributor guide](CONTRIBUTING.md).
Find out more in the [contributor guide](CONTRIBUTING.md).

### Credits
We would like to thank all of our current [contributors](CONTRIBUTORS).

We would like to thank all of our current [contributors](CONTRIBUTORS).


----

### License information

* All code and documentation developed by Imagination Technologies Limited is licensed under the [BSD 3-clause license](LICENSE).
* Bouncy Castle by The Legion of the Bouncy Castle is licensed under an [adaptation of the MIT X11 License](https://bouncycastle.org/csharp/licence.html).
* All code and documentation developed by Imagination Technologies Limited is licensed under the [BSD 3-clause license](LICENSE).
* Bouncy Castle by The Legion of the Bouncy Castle is licensed under an [adaptation of the MIT X11 License](https://bouncycastle.org/csharp/licence.html).


----
Expand Down
9 changes: 9 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
CONFIGURATION=$1
shift

for PACKAGE in $*; do
cd /app/$PACKAGE
dotnet restore
dotnet pack --configuration=$CONFIGURATION
done

0 comments on commit e5dd266

Please sign in to comment.