Commit 1c0b4f6
committed
src,lib: implement experimental DTLS API
Decided to take a short break from the work on QUIC
to implement a DTLS API. Very experimental at this
point but the basic API is there (inspired by the
QUIC API work).
The implementation is based on OpenSSL's built-in
DTLS support and no other dependencies are required.
DTLS is a datagram-based version of TLS that is used
for things like WebRTC and CoAP. It provides similar
security guarantees as TLS but is designed to work over
UDP instead of TCP.
This shouldn't be considered ready for production
but it is a good starting point for experimentation
and feedback.
```bash
./configure --experimental-dtls
make -j{nproc}
./node --experimental-dtls my-dtls-app.js
```
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode:Opus 4.61 parent 49aef0d commit 1c0b4f6
43 files changed
Lines changed: 4265 additions & 3 deletions
File tree
- doc
- api
- lib
- internal
- bootstrap
- dtls
- modules/cjs
- process
- src
- dtls
- test
- common
- doctool
- parallel
- sequential
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1068 | 1074 | | |
1069 | 1075 | | |
1070 | 1076 | | |
| |||
2350 | 2356 | | |
2351 | 2357 | | |
2352 | 2358 | | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2353 | 2363 | | |
2354 | 2364 | | |
2355 | 2365 | | |
| |||
2808 | 2818 | | |
2809 | 2819 | | |
2810 | 2820 | | |
| 2821 | + | |
2811 | 2822 | | |
2812 | 2823 | | |
2813 | 2824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1215 | 1226 | | |
1216 | 1227 | | |
1217 | 1228 | | |
| |||
3736 | 3747 | | |
3737 | 3748 | | |
3738 | 3749 | | |
| 3750 | + | |
3739 | 3751 | | |
3740 | 3752 | | |
3741 | 3753 | | |
| |||
4406 | 4418 | | |
4407 | 4419 | | |
4408 | 4420 | | |
| 4421 | + | |
4409 | 4422 | | |
4410 | 4423 | | |
4411 | 4424 | | |
| |||
0 commit comments