Skip to content

Commit

Permalink
openssl version fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Baentsch <[email protected]>
  • Loading branch information
baentsch committed Dec 4, 2024
1 parent 1073b43 commit 3409db7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions oqsprov/oqs_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1320,17 +1320,16 @@ static int oqs_sig_set_ctx_params(void *vpoqs_sigctx,
if (!oqs_sig_setup_md(poqs_sigctx, mdname, mdprops))
return 0;
}
if (OPENSSL_VERSION_PREREQ(3, 2)) {
p = OSSL_PARAM_locate_const(params,
OSSL_SIGNATURE_PARAM_CONTEXT_STRING);
if (p != NULL) {
if (!OSSL_PARAM_get_octet_string(
p, &poqs_sigctx->context_string, 0,
&(poqs_sigctx->context_string_length))) {
poqs_sigctx->context_string_length = 0;
return 0;
}
#if (OPENSSL_VERSION_PREREQ(3, 2))
p = OSSL_PARAM_locate_const(params, OSSL_SIGNATURE_PARAM_CONTEXT_STRING);
if (p != NULL) {
if (!OSSL_PARAM_get_octet_string(
p, &poqs_sigctx->context_string, 0,
&(poqs_sigctx->context_string_length))) {
poqs_sigctx->context_string_length = 0;
return 0;
}
#endif
}

// not passing in parameters we can act on is no error
Expand Down

0 comments on commit 3409db7

Please sign in to comment.