Skip to content

evp_fetch: add -f option for selecting the exclusive fetch type#62

Closed
esyr wants to merge 6 commits into
openssl:mainfrom
esyr:esyr/evp_fetch-exclusive-type
Closed

evp_fetch: add -f option for selecting the exclusive fetch type#62
esyr wants to merge 6 commits into
openssl:mainfrom
esyr:esyr/evp_fetch-exclusive-type

Conversation

@esyr

@esyr esyr commented Oct 29, 2025

Copy link
Copy Markdown
Member

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.

esyr added 3 commits October 29, 2025 14:15
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
… the library

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>

@Sashan Sashan left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread source/evp_fetch.c Outdated
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
Copy Markdown
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
Copy Markdown
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 added 3 commits October 30, 2025 11:49
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
…n to the envvar

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
@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

@Sashan Sashan left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread source/evp_fetch.c
{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
Copy Markdown
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 <esyr@openssl.org>

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from #62)
@Sashan

Sashan commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

changes made to repo, thanks
06c1b14

@Sashan Sashan closed this Nov 1, 2025
esyr added a commit to esyr/openssl-perftools that referenced this pull request Nov 11, 2025
The changes address the following compiler warnings (reported by GCC 14):

    ssl_poll_perf.c: In function ‘srvapp_setup_response’:
    ssl_poll_perf.c:1553:33: warning: variable ‘pesb’ set but not used [-Wunused-but-set-variable]
     1553 |     struct poll_event_sbstream *pesb;
          |                                 ^~~~
    ssl_poll_perf.c: In function ‘clntapp_write_custreamcb’:
    ssl_poll_perf.c:2389:28: warning: unused variable ‘rb’ [-Wunused-variable]
     2389 |     struct request_buffer *rb;
          |                            ^~
    ssl_poll_perf.c: In function ‘clntapp_update_pec’:
    ssl_poll_perf.c:2469:9: warning: variable ‘e’ set but not used [-Wunused-but-set-variable]
     2469 |     int e;
          |         ^
    ssl_poll_perf.c: In function ‘main’:
    ssl_poll_perf.c:3138:9: warning: unused variable ‘ccount’ [-Wunused-variable]
     3138 |     int ccount = 0;
          |         ^~~~~~
    ssl_poll_perf.c: At top level:
    ssl_poll_perf.c:1007:1: warning: ‘stream_state_str’ defined but not used [-Wunused-function]
     1007 | stream_state_str(int stream_state)
          | ^~~~~~~~~~~~~~~~
    ssl_poll_perf.c:954:1: warning: ‘err_str_n’ defined but not used [-Wunused-function]
      954 | err_str_n(unsigned long e, char *buf, size_t buf_sz)
          | ^~~~~~~~~

Complements: openssl#62
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
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