Skip to content

Commit

Permalink
Fix multihash encoding of WebRTC certificates (#1354)
Browse files Browse the repository at this point in the history
* Fix multihash encoding of WebRTC certificates

* Update CHANGELOG
  • Loading branch information
tomaka authored Nov 17, 2023
1 parent da358cc commit 1e34668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions light-base/src/network_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2140,11 +2140,11 @@ async fn background_task<TPlat: PlatformRef>(mut task: BackgroundTask<TPlat>) {
.await;

// Convert the SHA256 hashes into multihashes.
let local_tls_certificate_multihash = [12u8, 32]
let local_tls_certificate_multihash = [18u8, 32]
.into_iter()
.chain(connection.local_tls_certificate_sha256.into_iter())
.collect();
let remote_tls_certificate_multihash = [12u8, 32]
let remote_tls_certificate_multihash = [18u8, 32]
.into_iter()
.chain(remote_certificate_sha256.into_iter())
.collect();
Expand Down
2 changes: 1 addition & 1 deletion wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Fixed

- Fix several WebRTC-related panics and bugs. ([#1348](https://github.com/smol-dot/smoldot/pull/1348))
- Fix several WebRTC-related panics and bugs. ([#1348](https://github.com/smol-dot/smoldot/pull/1348), [#1350](https://github.com/smol-dot/smoldot/pull/1350), [#1354](https://github.com/smol-dot/smoldot/pull/1354))

## 2.0.9 - 2023-11-16

Expand Down

0 comments on commit 1e34668

Please sign in to comment.