[openssl/openssl] ef2c90: Add defaults api to openssl build

Neil Horman noreply at github.com
Mon Jun 3 16:55:15 UTC 2024


  Branch: refs/heads/read-openssldir-from-registry
  Home:   https://github.com/openssl/openssl
  Commit: ef2c90a68e9a5dda1d466b9d3a1de99ec4e9c849
      https://github.com/openssl/openssl/commit/ef2c90a68e9a5dda1d466b9d3a1de99ec4e9c849
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M NOTES-WINDOWS.md
    M crypto/build.info
    A crypto/defaults.c
    M include/internal/common.h

  Log Message:
  -----------
  Add defaults api to openssl build

Build time defaults aren't great for windows, in which various macros
(like OPENSSLDIR) are selected at build time, but may be selected
differently at install time.  Add an internal defaults api to return the
build time constants on unix systems, but instead query registry keys
for the form:
HLKM\SOFTWARE\OpenSSL-{version}-{wininstallcontext}
Such that each built version of openssl may maintain its own set of
registry keys to identify these locations, and be set administratiely as
appropriate at install or run time


  Commit: 58949ed92c398dfd0089365dfa4f26c5ba138b3b
      https://github.com/openssl/openssl/commit/58949ed92c398dfd0089365dfa4f26c5ba138b3b
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M apps/version.c
    M crypto/cversion.c
    M crypto/engine/eng_list.c
    M crypto/info.c
    M crypto/provider_core.c
    M crypto/x509/x509_def.c
    M include/openssl/crypto.h.in

  Log Message:
  -----------
  convert users of build time defaults to use new defaults api

Now that we can query for install time registry keys on windows, convert
users of these macros to use the api instead


  Commit: 77919e19e85e2da3a579f260f1a1f9eb60db7934
      https://github.com/openssl/openssl/commit/77919e19e85e2da3a579f260f1a1f9eb60db7934
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    A test/recipes/02-test_windows_registry.t

  Log Message:
  -----------
  Add a unit test to validate the functionality of our reg key lookups

Add a test to check to make sure our registry key lookups work.  note
this test only runs on windows (clearly), but also only if the registry
keys are set via an installer or some other manual process (to be done
in the CI workflow)


  Commit: 08e6f89edf634f1dc248bd8f9ff61a8842cd2fbc
      https://github.com/openssl/openssl/commit/08e6f89edf634f1dc248bd8f9ff61a8842cd2fbc
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M .github/workflows/windows.yml

  Log Message:
  -----------
  Add workflow steps to set registry keys for testing


Compare: https://github.com/openssl/openssl/compare/ef2c90a68e9a%5E...08e6f89edf63

To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list