-
Notifications
You must be signed in to change notification settings - Fork 11
evp_fetch: add -f option for selecting the exclusive fetch type #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Eugene Syromiatnikov <[email protected]>
Signed-off-by: Eugene Syromiatnikov <[email protected]>
… the library Signed-off-by: Eugene Syromiatnikov <[email protected]>
There was a problem hiding this 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.
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])) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Signed-off-by: Eugene Syromiatnikov <[email protected]>
Signed-off-by: Eugene Syromiatnikov <[email protected]>
…n to the envvar Signed-off-by: Eugene Syromiatnikov <[email protected]>
382a34f to
4ab8e0e
Compare
There was a problem hiding this 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) |
There was a problem hiding this comment.
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
…n to the envvar Signed-off-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Saša Nedvědický <[email protected]> (Merged from #62)
|
changes made to repo, thanks |
Apparently,
evp_fetchtest 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.