Repository navigation
build(deps): bump hmac and crypto deps to clean up advisory on block-buffer #1971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,13 +26,13 @@ ironrdp-svc = { path = "../ironrdp-svc", version = "0.8" } # public | |
| ironrdp-core = { path = "../ironrdp-core", version = "0.2" } # public | ||
| ironrdp-error = { path = "../ironrdp-error", version = "0.2" } # public | ||
| ironrdp-pdu = { path = "../ironrdp-pdu", version = "0.9", features = ["std"] } # public | ||
| sspi = { version = "0.21", features = ["scard"] } | ||
| sspi = { version = "^0.22", features = ["scard"] } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [code-compressor] Redundant caret operator in sspi version requirement — low 🟡 — The PR rewrites `sspi = { version = "0.21" ... }` as `version = "^0.22"` here and in crates/ironrdp/Cargo.toml:90, crates/ironrdp-mstsgu/Cargo.toml:100, and ffi/Cargo.toml:23. Caret is Cargo's default requirement operator, so "^0.22" is exactly equivalent to "0.22"; the rest of the workspace (including adjacent lines in these hunks) uses bare requirements. Dropping `^` preserves resolution and the lockfile while matching convention. Purely cosmetic with zero behavior impact. |
||
| url = "2.5" # public | ||
| rand = { version = "0.9", features = ["std"] } # TODO: dependency injection? | ||
| tracing = { version = "0.1", features = ["log"] } | ||
| picky-asn1-der = "0.5" | ||
| picky-asn1-x509 = "0.15" | ||
| picky = "=7.0.0-rc.25" # FIXME: We are pinning with = because the candidate version number counts as the minor number by Cargo, and will be automatically bumped in the Cargo.lock. | ||
| picky = "=7.0.0-rc.26" # FIXME: We are pinning with = because the candidate version number counts as the minor number by Cargo, and will be automatically bumped in the Cargo.lock. | ||
|
|
||
| [lints] | ||
| workspace = true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -262,7 +262,11 @@ fn extract_user_principal_name(cert: &Certificate) -> Option<String> { | |
| } | ||
|
|
||
| fn write_credssp_request(ts_request: credssp::TsRequest, output: &mut WriteBuf) -> ConnectorResult<usize> { | ||
| let length = usize::from(ts_request.buffer_len()); | ||
| let length = usize::from( | ||
| ts_request | ||
| .buffer_len() | ||
| .map_err(|e| ConnectorError::new("CredSSP", ConnectorErrorKind::Credssp(e)))?, | ||
| ); | ||
|
Comment on lines
+265
to
+269
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [code-compressor] Duplicated CredsspError-to-ConnectorError mapping closure — low 🟡 — The PR-added fallible `buffer_len()` handling introduces `map_err(|e| ConnectorError::new("CredSSP", ConnectorErrorKind::Credssp(e)))` (line 268), duplicating the identical closure at line 165; both wrap a CredsspError. A one-line local helper `fn credssp_error(e: CredsspError) -> ConnectorError` collapses both sites to `.map_err(credssp_error)?` with unchanged error kind, message, and behavior. Optional style cleanup; the added pattern does follow existing convention, so leaving it costs only a few duplicated tokens. |
||
|
|
||
| let unfilled_buffer = output.unfilled_to(length); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[code-compressor] Duplicated CredsspError-to-ConnectorError mapping closure — low 🟡 — Same shape as the connector change: the PR-added `map_err(|e| ConnectorError::new("CredSSP", ConnectorErrorKind::Credssp(e)))` at line 173 duplicates the identical closure already at line 124 of this file, with the same CredsspError inner type. A per-file private helper reduces the duplication with identical error output; cross-crate sharing is deliberately not proposed to avoid expanding the public API. Optional cleanup; behavior is fully preserved either way.