Skip to content

fix(device_bm26): guard mbedTLS AES block with ENABLE_MBEDTLS#134

Merged
1technophile merged 1 commit into
developmentfrom
fix/bm26-mbedtls-guard
Jun 1, 2026
Merged

fix(device_bm26): guard mbedTLS AES block with ENABLE_MBEDTLS#134
1technophile merged 1 commit into
developmentfrom
fix/bm26-mbedtls-guard

Conversation

@1technophile

Copy link
Copy Markdown
Member

Description:

The rest of device_bm26.cpp already gates mbedtls.h includes and uses on ENABLE_MBEDTLS, but the AES-CBC block inside
serviceDetailsDiscovered_volt() referenced mbedtls_aes_* unconditionally, breaking compilation with -DENABLE_MBEDTLS=OFF. Wrap the block in the same guard and zero-init the output buffer so the code path is well defined when the encryption helper is compiled out.

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

The rest of device_bm26.cpp already gates mbedtls.h includes and uses on
ENABLE_MBEDTLS, but the AES-CBC block inside
serviceDetailsDiscovered_volt() referenced mbedtls_aes_* unconditionally,
breaking compilation with -DENABLE_MBEDTLS=OFF. Wrap the block in the
same guard and zero-init the output buffer so the code path is well
defined when the encryption helper is compiled out.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@1technophile 1technophile merged commit b333b67 into development Jun 1, 2026
10 checks passed
@1technophile 1technophile deleted the fix/bm26-mbedtls-guard branch June 1, 2026 01:02
1technophile added a commit that referenced this pull request Jun 6, 2026
Bump the 1.5.0 release date to 2026-06-06 and fold in the user-facing
changes that landed between #130 and the cut: TheengsDecoder v2.3.0
(#137), MQTT sentinels + sampling caption (#131), credential secure
storage (#132), background-update scheduling and consolidated
permissions UI (#133, #135), the About-screen decoder version and
build number (#139), the iOS mbedTLS static-link fix (#138), and the
device_bm26 ENABLE_MBEDTLS guard (#134).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1technophile added a commit that referenced this pull request Jun 6, 2026
Bump the 1.5.0 release date to 2026-06-06 and fold in the user-facing
changes that landed between #130 and the cut: TheengsDecoder v2.3.0
(#137), MQTT sentinels + sampling caption (#131), credential secure
storage (#132), background-update scheduling and consolidated
permissions UI (#133, #135), the About-screen decoder version and
build number (#139), the iOS mbedTLS static-link fix (#138), and the
device_bm26 ENABLE_MBEDTLS guard (#134).

Co-authored-by: Florian <1technophile@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant