fix build error
[mech_eap.git] / util_cksum.c
index 505256c..80d57d8 100644 (file)
@@ -75,7 +75,7 @@ gssEapChecksum(krb5_context context,
     if (verify)
         *valid = FALSE;
 
-    code = krb5_c_crypto_length(context, KRB_KEYTYPE(key),
+    code = krb5_c_crypto_length(context, KRB_KEY_TYPE(key),
                                 KRB5_CRYPTO_TYPE_CHECKSUM, &k5_checksumlen);
     if (code != 0)
         return code;
@@ -170,6 +170,7 @@ gssEapVerify(krb5_context context,
                           sign_usage, iov, iov_count, 1, valid);
 }
 
+#if 0
 OM_uint32
 gssEapEncodeGssChannelBindings(OM_uint32 *minor,
                                gss_channel_bindings_t chanBindings,
@@ -180,7 +181,7 @@ gssEapEncodeGssChannelBindings(OM_uint32 *minor,
     unsigned char *p;
 
     if (chanBindings != GSS_C_NO_CHANNEL_BINDINGS) {
-        length = sizeof(OM_uint32) * 5;
+        length = 24;
         length += chanBindings->initiator_address.length;
         length += chanBindings->acceptor_address.length;
         length += chanBindings->application_data.length;
@@ -212,3 +213,4 @@ gssEapEncodeGssChannelBindings(OM_uint32 *minor,
     *minor = 0;
     return GSS_S_COMPLETE;
 }
+#endif