summaryrefslogtreecommitdiff
path: root/lib/Zinternal.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-12-24 23:52:23 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-12-24 23:52:23 +0000
commitd44cdd8600187a9c000d1e036c7dd8721c941caf (patch)
treefb4a4262d802dff06ee1c03a3c6e67d047310ac7 /lib/Zinternal.c
parentb1aa1f99237b8743dc10defbbc14a8fa359a6c9f (diff)
make this work^H^H^H^Hcompile with Heimdal
Diffstat (limited to 'lib/Zinternal.c')
-rw-r--r--lib/Zinternal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Zinternal.c b/lib/Zinternal.c
index d5e0e44..504a9a8 100644
--- a/lib/Zinternal.c
+++ b/lib/Zinternal.c
@@ -1272,14 +1272,14 @@ Z_Checksum(krb5_data *cksumbuf,
krb5_error_code result;
unsigned char *data;
int len;
-#if HAVE_KRB5_C_MAKE_CHECKSUM
+#ifndef HAVE_KRB5_CRYPTO_INIT
krb5_checksum checksum;
#else
Checksum checksum;
krb5_crypto cryptctx;
#endif
-#if HAVE_KRB5_C_MAKE_CHECKSUM
+#ifndef HAVE_KRB5_CRYPTO_INIT
/* Create the checksum -- MIT crypto API */
result = krb5_c_make_checksum(Z_krb5_ctx, cksumtype,
keyblock, Z_KEYUSAGE_CLT_CKSUM,
@@ -1317,7 +1317,7 @@ Z_Checksum(krb5_data *cksumbuf,
memcpy(*asn1_data, data, len);
*asn1_len = len;
-#if HAVE_KRB5_C_MAKE_CHECKSUM
+#ifndef HAVE_KRB5_CRYPTO_INIT
krb5_free_checksum_contents(Z_krb5_ctx, &checksum);
#else
free_Checksum(&checksum);
@@ -1414,7 +1414,7 @@ Z_krb5_verify_cksum(krb5_keyblock *keyblock,
int asn1_len)
{
krb5_error_code result;
-#if HAVE_KRB5_C_MAKE_CHECKSUM
+#ifndef HAVE_KRB5_CRYPTO_INIT
krb5_checksum checksum;
krb5_boolean valid;
#else
@@ -1424,7 +1424,7 @@ Z_krb5_verify_cksum(krb5_keyblock *keyblock,
#endif
memset(&checksum, 0, sizeof(checksum));
-#if HAVE_KRB5_C_MAKE_CHECKSUM
+#ifndef HAVE_KRB5_CRYPTO_INIT
/* Verify the checksum -- MIT crypto API */
checksum.length = asn1_len;
checksum.contents = asn1_data;