-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
268 additions
and
98 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
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
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
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
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
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
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,52 +1,54 @@ | ||
This is an example to demonstrate how the custom IO callbacks can be used to</br> | ||
facilitate a TLS connection using any medium. Here we chose the medium: "File System".</br> | ||
|
||
Other mediums might be: </br> | ||
USB Serial connection </br> | ||
Bluetooth </br> | ||
RFID </br> | ||
Wifi </br> | ||
Ethernet </br> | ||
</br> | ||
Just to name a few.</br> | ||
</br> | ||
These examples use the wolfSSL Custom IO Callbacks to read and write to the file</br> | ||
system and perform a successful handshake.</br> | ||
</br> | ||
The configuration used for these examples was:</br> | ||
./configure --enable-debug</br> | ||
</br> | ||
Debug was enabled in case a user wishes to use the verbose flag to see what is</br> | ||
happening in real time:</br> | ||
</br> | ||
Usage examples:</br> | ||
</br> | ||
From the file-server directory:</br> | ||
./start-server</br> | ||
./start-server -v</br> | ||
./start-server -verbose</br> | ||
</br> | ||
From the file-client directory:</br> | ||
./start-client</br> | ||
./start-client -v</br> | ||
./start-client -verbose</br> | ||
</br> | ||
(-v and -verbose accomplish the same thing)</br> | ||
</br> | ||
</br> | ||
SCRIPTS: The scripts provided attempt to make testing easier.</br> | ||
</br> | ||
file-server/check.sh</br> | ||
- starts the server in a background shell and runs the client </br> | ||
</br> | ||
USAGE:</br> | ||
./check.sh</br> | ||
./check.sh -v</br> | ||
./check.sh -verbose</br> | ||
</br> | ||
file-client/clean-io-files.sh</br> | ||
- If something happens and there is leftover junk in the io files run this</br> | ||
script to quickly cleanup before next round of testing.</br> | ||
USAGE:</br> | ||
./clean-io-files.sh</br> | ||
</br> | ||
# Custom IO Callback Example | ||
|
||
This is an example to demonstrate how the custom IO callbacks can be used to | ||
facilitate a TLS connection using any medium. Here we chose the medium: "File System". | ||
|
||
Other transports might be: | ||
* USB Serial connection | ||
* Bluetooth | ||
* RFID | ||
* Wifi | ||
* Ethernet | ||
|
||
These examples use the wolfSSL Custom IO Callbacks to read and write to the file | ||
system and perform a successful handshake. | ||
|
||
The configuration used for these examples: | ||
|
||
`./configure --enable-debug` | ||
|
||
Debug was enabled in case a user wishes to use the verbose flag to see what is | ||
happening in real time: | ||
|
||
Usage examples: | ||
|
||
From the file-server directory: | ||
./start-server | ||
./start-server -v | ||
./start-server -verbose | ||
|
||
From the file-client directory: | ||
./start-client | ||
./start-client -v | ||
./start-client -verbose | ||
|
||
(-v and -verbose accomplish the same thing) | ||
|
||
## SCRIPTS | ||
|
||
The scripts provided attempt to make testing easier. | ||
|
||
* file-server/check.sh | ||
- starts the server in a background shell and runs the client | ||
|
||
USAGE: | ||
./check.sh | ||
./check.sh -v | ||
./check.sh -verbose | ||
|
||
* file-client/clean-io-files.sh | ||
- If something happens and there is leftover junk in the io files run this | ||
script to quickly cleanup before next round of testing. | ||
|
||
USAGE: | ||
./clean-io-files.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
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,5 +1,5 @@ | ||
/* | ||
* client-dtls.c | ||
* client-dtls-ipv6.c | ||
* | ||
* Copyright (C) 2006-2020 wolfSSL Inc. | ||
* | ||
|
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 @@ | ||
/* server-dtls.c | ||
/* server-dtls-ipv6.c | ||
* | ||
* Copyright (C) 2006-2015 wolfSSL Inc. | ||
* | ||
|
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
Oops, something went wrong.