Skip to content

Conversation

@esyr
Copy link
Member

@esyr esyr commented Oct 29, 2025

Apparently, evp_fetch test has an (undocumented) environment variable that allows specifying a fetch algorithm to be fetched exclusively, instead of iterating over all the available ones in a round robin fashion. Define a command-line option for that, similarly to the way other parameters are controlled in other tests, and document it, along with the original environment variable.

Copy link
Contributor

@Sashan Sashan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, there is just one nit to get fixed. thanks.

for (i = 0; i < ARRAY_SIZE(type_map); i++) {
if (!strcmp(fetch_type, type_map[i].name)) {
exclusive_fetch_type = type_map[i].id;
if (type_map[i] != NULL, !strcmp(fetch_type, type_map[i])) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/NULL,/NULL &&

otherwise looks good.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ufff, good catch, thanks! Fixed.

@esyr esyr force-pushed the esyr/evp_fetch-exclusive-type branch from 382a34f to 4ab8e0e Compare October 30, 2025 10:50
@esyr esyr requested a review from Sashan October 30, 2025 10:51
Copy link
Contributor

@Sashan Sashan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, thanks.

{FETCH_MAC, OSSL_MAC_NAME_POLY1305, NULL},
#endif
#ifndef OPENSSL_NO_ML_KEM
#if defined(OPENSSL_DO_PQ) && !defined(OPENSSL_NO_ML_KEM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it would be clearer to nest these algos into OPENSSL_DO_PQ to have it only once, but fine by me

Sashan pushed a commit that referenced this pull request Nov 1, 2025
…n to the envvar

Signed-off-by: Eugene Syromiatnikov <[email protected]>

Reviewed-by: Saša Nedvědický <[email protected]>
(Merged from #62)
@Sashan
Copy link
Contributor

Sashan commented Nov 1, 2025

changes made to repo, thanks
06c1b14

@Sashan Sashan closed this Nov 1, 2025
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.

3 participants