Fixes for Heimdal (macOS) builds from Stefan.
[mech_eap.git] / mech_eap / wrap_iov_length.c
index 6fbdfdb..bd1f6fb 100644 (file)
@@ -65,7 +65,7 @@
 
 OM_uint32
 gssEapWrapIovLength(OM_uint32 *minor,
-                    gss_ctx_id_t ctx,
+                    gss_const_ctx_id_t ctx,
                     int conf_req_flag,
                     gss_qop_t qop_req,
                     int *conf_state,
@@ -245,7 +245,6 @@ gss_get_mic_iov_length(OM_uint32 *minor,
                        int iov_count)
 {
     OM_uint32 major;
-    int conf_state;
 
     if (ctx == GSS_C_NO_CONTEXT) {
         *minor = EINVAL;
@@ -263,7 +262,7 @@ gss_get_mic_iov_length(OM_uint32 *minor,
     }
 
     major = gssEapWrapIovLength(minor, ctx, FALSE, qop_req,
-                                &conf_state, iov, iov_count, TOK_TYPE_MIC);
+                                NULL, iov, iov_count, TOK_TYPE_MIC);
     if (GSS_ERROR(major))
         goto cleanup;