Skip to content
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

acvp_app --version exits non-zero #872

Open
smoser opened this issue Oct 23, 2024 · 2 comments
Open

acvp_app --version exits non-zero #872

smoser opened this issue Oct 23, 2024 · 2 comments

Comments

@smoser
Copy link

smoser commented Oct 23, 2024

Hi,
I was testing out libacvp built in wolfi here.
It seems that acvp_app --version exits non-zero (always?). At least in my test:

# acvp_app  --version --disable_fips && echo good || echo bad $?

 ACVP library version: libacvp_oss-2.1.2
ACVP protocol version: 1.0

 Compiled SSL version: OpenSSL 3.3.2 3 Sep 2024
   Linked SSL version: OpenSSL 3.3.2 3 Sep 2024

       FIPS requested: no
bad 1
# acvp_app  --version  && echo good || echo bad $?

 ACVP library version: libacvp_oss-2.1.2
ACVP protocol version: 1.0

 Compiled SSL version: OpenSSL 3.3.2 3 Sep 2024
   Linked SSL version: OpenSSL 3.3.2 3 Sep 2024

       FIPS requested: yes
FIPS Provider Version: (null)
bad 1

--help also exits non-zero , even though it is advertised in output without any arguments:

# acvp_app  ; echo $?
Requires at least 1 Algorithm Test Suite
Use acvp_app --help for more information.
1
# acvp_app --help ; echo $?                                                                 
                          
===========================                                                                               
===== ACVP_APP USAGE ======                      
===========================
...
1

I was just trying to use the version to smoketest the program. Is there another recommended way?

@xnox
Copy link

xnox commented Oct 23, 2024

Also even with a FIPS module it exists 1. Many automated distribution testing systems expect binaries to exit 0 upon --help / --version calls.

@abkarcher
Copy link
Contributor

Thanks for reporting this, not sure how long the code would have been doing this. Will take a look ASAP.

Andrew

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

No branches or pull requests

3 participants