Skip to content

Fix Python SDLS client mismatches with CryptoLib - #104

Merged
kgieselman-jpl merged 2 commits into
devfrom
python-client-bugs
Oct 13, 2026
Merged

kgieselman-jpl merged 2 commits into
devfrom
python-client-bugs

Conversation

@jppan-jpl

Copy link
Copy Markdown
Contributor
  • Replace distutils.util.strtobool (removed in Python 3.12)
  • Map enums correctly: TC check_fecf used AOS_CHECK_FECF_*, AOS has_ecf=false used TM_NO_FECF, AOS has_ocf used TM OCF values
  • Invert kmccryptoservice.verifyserver; unset/true now verifies TLS
  • Free the frame CryptoLib allocates in apply_security_tc
  • Pass tfvn as int, not a character code
  • Require max_frame_length for TM/AOS and pass the real frame length to process_security_tm/aos so short frames are rejected
  • Return the full max-length frame from apply_security_aos
  • Let cryptolib.tc.* override deprecated process_tc.* keys
  • Add optional cam_cookies to TC apply/process via the _cam entry points
  • Fix hex() for TC segment headers, pad bytes, AOS IZ and optional FECF

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: The number of snapshots compared for the base SHA (1) and the head SHA (2) do not match. You may see unexpected additions in the diff.
Consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@sonarqubecloud

Copy link
Copy Markdown

@kgieselman-jpl
kgieselman-jpl merged commit d61bc76 into dev Oct 13, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants