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

Fix some issues discovered when running ruby OpenSSL gem tests. #196

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

haydenroche5
Copy link
Contributor

  • If length param to rand bytes function is 0, do nothing and return success.
  • In we_dh_compute_key_int, if DH_get0_priv_key returns NULL, error out. The lack of NULL check here was causing a seg fault.
  • Add support for the dh_paramgen_prime_len control string in DH code.
  • Receiving EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR should return an error, since we don't support setting the generator.
  • Add a DH control command unit test.

See ZD #14805.

- If length param to rand bytes function is 0, do nothing and return success.
- In we_dh_compute_key_int, if DH_get0_priv_key returns NULL, error out. The
lack of NULL check here was causing a seg fault.
- Add support for the dh_paramgen_prime_len control string in DH code.
- Receiving EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR should return an error, since we
don't support setting the generator.
- Add a DH control command unit test.
- Move EVP_PKEY_CTRL_DH_PAD definition into openssl_bc.h so that unit tests have
access to it. Add comment noting which OpenSSL version introduced this macro.

See ZD #14805.
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.

2 participants