Skip to content

fix: replace incompatible cast with proper callback wrappers - #128

Open
RufusJWB wants to merge 1 commit into
masterfrom
fix_cast_incompatible
Open

RufusJWB wants to merge 1 commit into
masterfrom
fix_cast_incompatible

Conversation

@RufusJWB

Copy link
Copy Markdown
Collaborator

Add ossl_cmp_log_cb() and ossl_cmp_log_console_cb() functions to wrap LOG() and LOG_console() calls with the correct signature expected by OSSL_CMP_CTX_set_log_cb(). This eliminates unsafe casts that relied on implicit conversion between incompatible function pointer types (int vs. bool return values and different parameter handling).

Motivation

(Please write out your motivation here.)

Proposed Changes

(Write out the details of your proposed changes here.)

Test Plan

(Please provide clear instructions on how to verify that your changes work.)

@RufusJWB
RufusJWB requested a review from DDvO September 28, 2026 07:06
Add ossl_cmp_log_cb() and ossl_cmp_log_console_cb() functions to wrap
LOG() and LOG_console() calls with the correct signature expected by
OSSL_CMP_CTX_set_log_cb(). This eliminates unsafe casts that relied on
implicit conversion between incompatible function pointer types
(int vs. bool return values and different parameter handling).
@DDvO
DDvO force-pushed the fix_cast_incompatible branch from 4773c13 to 198dbc8 Compare September 28, 2026 08:13
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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