base: differentiate KRB5 and other configurations on Windows
commited24c41973ad81d4b6971b3a8fb0843001eee674
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 28 Jun 2020 14:32:38 +0000 (28 10:32 -0400)
committerJeffrey Altman <jaltman@auristor.com>
Mon, 29 Jun 2020 15:40:48 +0000 (29 11:40 -0400)
tree45a8af98d025c8a45d7fc7052aaf1e7f4d608540
parent2a0b0c0237381258dec42702a32cbc7fbc44f802
base: differentiate KRB5 and other configurations on Windows

When the "KRB5_CONFIG" is unset on Windows, the registry values
  HKLM\Software\Heimdal "config"
  HKCU\Software\Heimdal "config"
are used.   The migration of krb5_config to heimbase failed to
differentiate between KRB5_CONFIG, HX509_CONFIG, etc.   The above
registry values are only for the KRB5_CONFIG.

This change permits the envvar name to be searched for in the
registry.   For HX509_CONFIG the registry values
  HKLM\Software\Heimdal "HX509_CONFIG"
  HKCU\Software\Heimdal "HX509_CONFIG"
will be searched for configuration information.

Change-Id: I140945fa603d668d270eb5d740a11edc6fc121d7
lib/base/context.c