Skip to content

Commit f2e7e9e

Browse files
committed
add mssql encrypted login packet
fixes #676
1 parent c72e0e9 commit f2e7e9e

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
- ![embedded card screenshot](https://github.com/user-attachments/assets/ea85438d-5fcb-4eed-b90b-a4385675355d)
4242
- Added support for `empty_option` in the form component to add an empty option before the options defined in `options`. Useful when generating other options from a database table.
4343
- Allow nested json objects and arrays as sqlpage function parameters (useful in `sqlpage.fetch`).
44+
- Implement *Login packet encryption* in mssql:
45+
- SQL Server has three levels of encryption support, which are now all supported by this library:
46+
- No encryption, where all data including the password is sent in plaintext. Used only when either client or server declare missing encryption capabilities. You can enable this mode in this library by setting `encrypt=not_supported` in the connection string.
47+
- Encryption is supported on both sides, but disabled on either side. You can enable this mode in this library by setting `encrypt=off` in the connection string. In this mode, the login phase will be encrypted, but data packets will be sent in plaintext.
48+
- Encryption is supported and enabled on both sides. You can enable this mode in this library by setting `encrypt=strict` in the connection string. In this mode, both the login phase and data packets will be encrypted.
49+
- Improved logging in the mssql driver login phase
4450

4551
## 0.30.1 (2024-10-31)
4652
- fix a bug where table sorting would break if table search was not also enabled.

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ panic = "abort"
1818
codegen-units = 2
1919

2020
[dependencies]
21-
sqlx = { package = "sqlx-oldapi", version = "0.6.37", features = [
21+
sqlx = { package = "sqlx-oldapi", version = "0.6.38", features = [
2222
"any",
2323
"runtime-actix-rustls",
2424
"sqlite",

0 commit comments

Comments
 (0)