[openssl/openssl] f76cf4: Fix EC_KEY_set_private_key() priv_key regression

Roberto Hueso noreply at github.com
Thu Aug 4 09:57:12 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: f76cf4d9885e0d39aa1d200ba851173939fd0bb6
      https://github.com/openssl/openssl/commit/f76cf4d9885e0d39aa1d200ba851173939fd0bb6
  Author: Roberto Hueso Gomez <roberto at robertohueso.org>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M crypto/ec/ec_key.c

  Log Message:
  -----------
  Fix EC_KEY_set_private_key() priv_key regression

This allows to set EC_KEY's private key to NULL and fixes regression
issue following OTC guideline in
https://github.com/openssl/openssl/issues/18744#issuecomment-1195175696

Fixes #18744.

Reviewed-by: Nicola Tuveri <nic.tuv at gmail.com>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/18941)


  Commit: 66627cdfc2450a3604ca23d8a4c9b02de2132b44
      https://github.com/openssl/openssl/commit/66627cdfc2450a3604ca23d8a4c9b02de2132b44
  Author: Roberto Hueso Gomez <roberto at robertohueso.org>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M test/ec_internal_test.c

  Log Message:
  -----------
  Add test for EC_KEY_set_private_key()

This tests the behavior and API of the EC_KEY_set_private_key function.
It tests compliance with legacy features related to NULL private keys
too.

Reviewed-by: Nicola Tuveri <nic.tuv at gmail.com>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/18941)


  Commit: c682dfdbdf503e776a9afadb1e6f9de47b729014
      https://github.com/openssl/openssl/commit/c682dfdbdf503e776a9afadb1e6f9de47b729014
  Author: Roberto Hueso Gomez <roberto at robertohueso.org>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M doc/man3/EC_KEY_new.pod

  Log Message:
  -----------
  Fix EC_KEY_set_private_key() NULL priv_key docs

Updates the docs to describe EC_KEY_set_private_key() function behavior
when a NULL priv_key argument is passed.

Reviewed-by: Nicola Tuveri <nic.tuv at gmail.com>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/18941)


Compare: https://github.com/openssl/openssl/compare/b0501275ef56...c682dfdbdf50


More information about the openssl-commits mailing list