Skip to content

Commit 0343a27

Browse files
authored
Get back to dev
Movement
2 parents 29cea2a + 742361f commit 0343a27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2289
-2647
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
dist
1+
*.wasm
22
*.pem
3-
*.pem.env

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "vendor/mbedtls"]
2+
path = vendor/mbedtls
3+
url = https://github.com/Mbed-TLS/mbedtls.git

Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
relay/mbedtls.wasm: vendor/mbedtls/library/* vendor/mbedtls/include/* c-src/*
3+
/opt/wasi-sdk/bin/wasm32-wasi-clang -O3 \
4+
-Ic-src -Ivendor/mbedtls/include \
5+
-DMBEDTLS_CONFIG_FILE=\"config.h\" \
6+
-fvisibility=default \
7+
-Wl,--export-dynamic,--export=malloc,--export=free,--export=strlen \
8+
-o $@ \
9+
$(filter %.c, $^)

README.md

Lines changed: 153 additions & 53 deletions
Large diffs are not rendered by default.

c-src/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS

cert.pem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
You can create your own using openssl
33
```
44
openssl req -new -sha256 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -x509 -nodes -days 365 -out cert.pem -keyout cert.pem -subj "/CN=WebRTC"
5-
openssl x509 -in cert.pem -noout -fingerprint -sha256
5+
openssl x509 -in cert.pem -noout -fingerprint -sha256 -dates
66
```
77

88
swbrd(sha-256)=ucCm6JK3s22XuCRiTZVFpWajUq0tIpB7lDn1Sv8dRv3

deno.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"imports": {
3-
"@std/assert": "jsr:@std/assert@^1.0.2"
3+
"mbedtls": "../mbedtls.js/src/mbedtls.js"
44
},
55
"fmt": {
6-
"useTabs": true
6+
"useTabs": true,
7+
"singleQuote": true
78
},
89
"tasks": {
9-
"start": "deno run --unstable-ffi --unstable-net -A server/main.js",
10-
"dev": "docker run -it -v$(pwd)/cert.pem:/var/swbrd/cert.pem:ro -p127.0.0.1:3478:3478/udp -p127.0.0.1:9229:9229/tcp $(docker build --platform linux/amd64 -q .) deno run --inspect=0.0.0.0:9229 --unstable-ffi --unstable-net -A server/main.js"
10+
"relay": "deno run --watch --unstable-net --unstable-ffi --allow-net --allow-ffi --allow-read relay/main.js"
1111
}
1212
}

deno.lock

Lines changed: 17 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ciphersuites.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- Chrome's Ciphersuites:
2+
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
3+
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
4+
- TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
5+
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
6+
- TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
7+
- TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
8+
- TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
9+
- TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
10+
- TLS_RSA_WITH_AES_128_GCM_SHA256
11+
- TLS_RSA_WITH_AES_128_CBC_SHA
12+
- TLS_RSA_WITH_AES_256_CBC_SHA
13+
- Firefox's Ciphersuites:
14+
- TLS_AES_128_GCM_SHA256
15+
- TLS_CHACHA20_POLY1305_SHA256
16+
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
17+
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
18+
- TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
19+
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
20+
- TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
21+
- TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
22+
- Prefered Ciphersuites:
23+
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
24+
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

0 commit comments

Comments
 (0)