cast void * to unsigned char * for Heimdal compat
[mech_eap.orig] / mech_eap / pseudo_random.c
index 4bbf542..476f1c5 100644 (file)
@@ -59,7 +59,7 @@
 
 #include "gssapiP_eap.h"
 
-OM_uint32
+OM_uint32 GSSAPI_CALLCONV
 gss_pseudo_random(OM_uint32 *minor,
                   gss_ctx_id_t ctx,
                   int prf_key,
@@ -134,7 +134,7 @@ gss_pseudo_random(OM_uint32 *minor,
         goto cleanup;
     }
 
-    memcpy(ns.data + 4, prf_in->value, prf_in->length);
+    memcpy((unsigned char *)ns.data + 4, prf_in->value, prf_in->length);
     i = 0;
     p = (unsigned char *)prf_out->value;
     while (desired_output_len > 0) {