Skip to content

Commit

Permalink
Windows: add HCRYPTO_FALLBACK config to build system
Browse files Browse the repository at this point in the history
HCRYPTO_FALLBACK is a required definition for building lib/hcrypto.
However, it wasn't added to the Windows build system.  This change
does so and enables fallback functionality.

Change-Id: I4a711c6da58e8832a61a3c0b2b8d9b10038425f0
  • Loading branch information
jaltman committed Apr 23, 2016
1 parent c751314 commit a4dae25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/NTMakefile
Expand Up @@ -61,6 +61,7 @@ while(<>) {
if ("$(KRB5)") { print "#define KRB5 1\n"; }
if ("$(KRB4)") { print "#define KRB4 1\n"; }
if ("$(WEAK_CRYPTO)") { print "#define HEIM_WEAK_CRYPTO 1\n"; }
if ("$(HCRYPTO_FALLBACK)") { print "#define HCRYPTO_FALLBACK 1\n"; } else { print "#define HCRYPTO_FALLBACK 0\n"; }
if ("$(PKINIT)") { print "#define PKINIT 1\n"; }
if ("$(NO_AFS)") { print "#define NO_AFS 1\n"; }
if ("$(OPENLDAP)") { print "#define OPENLDAP 1\n"; }
Expand Down
3 changes: 3 additions & 0 deletions windows/NTMakefile.config
Expand Up @@ -96,6 +96,9 @@ DIR_hdbdir=%{COMMON_APPDATA}/heimdal/hdb
# Disable weak crypto
WEAK_CRYPTO=0

# Enable hcrypt fallback mechanisms
HCRYPTO_FALLBACK=1

# Disable use of GSS LOCALNAME support
NO_LOCALNAME=1

Expand Down

0 comments on commit a4dae25

Please sign in to comment.