Skip to content

Commit

Permalink
Implement BIO_CTRL_GET_KTLS_SEND and BIO_CTRL_GET_KTLS_RECV (#7078)
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire authored Oct 24, 2023
1 parent 43853eb commit d4c8576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Fixed
* <How do the end-user experience this issue? what was the impact?> ([#????](https://github.com/realm/realm-core/issues/????), since v?.?.?)
* Deleting an object in an asymmetric table would cause a crash. Likely to solve [#1537](https://github.com/realm/realm-kotlin/issues/1537), since v12.1.0.
* Implement BIO_CTRL_GET_KTLS_SEND and BIO_CTRL_GET_KTLS_RECV as OpenSSL versions < 3.0.4 depend on it.

### Breaking changes
* Added separate enum for callback handler result values in the platform networking C API. ([PR #7015](https://github.com/realm/realm-core/pull/7015))
Expand Down
5 changes: 5 additions & 0 deletions src/realm/sync/network/network_ssl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,11 @@ long Stream::bio_ctrl(BIO*, int cmd, long, void*) noexcept
case BIO_CTRL_FLUSH:
// Ignoring in alignment with `crypto/bio/bss_sock.c` of OpenSSL.
return 1;
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
case BIO_CTRL_GET_KTLS_SEND:
case BIO_CTRL_GET_KTLS_RECV:
return 0;
#endif
default:
REALM_ASSERT_EX(false, "Got BIO_ctrl with unknown command %d", cmd);
}
Expand Down

0 comments on commit d4c8576

Please sign in to comment.