projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for Heimdal (macOS) builds from Stefan.
[mech_eap.git]
/
mech_eap
/
util_context.c
diff --git
a/mech_eap/util_context.c
b/mech_eap/util_context.c
index
7663f3d
..
b7a50c6
100644
(file)
--- a/
mech_eap/util_context.c
+++ b/
mech_eap/util_context.c
@@
-214,7
+214,7
@@
gssEapVerifyToken(OM_uint32 *minor,
OM_uint32
gssEapContextTime(OM_uint32 *minor,
OM_uint32
gssEapContextTime(OM_uint32 *minor,
- gss_ctx_id_t context_handle,
+ gss_c
onst_c
tx_id_t context_handle,
OM_uint32 *time_rec)
{
*minor = 0;
OM_uint32 *time_rec)
{
*minor = 0;
@@
-353,8
+353,13
@@
gssEapMakeOrVerifyTokenMIC(OM_uint32 *minor,
} else {
size_t checksumSize;
} else {
size_t checksumSize;
+#ifdef HAVE_HEIMDAL_VERSION
+ code = krb5_checksumsize(krbContext, ctx->checksumType,
+ &checksumSize);
+#else
code = krb5_c_checksum_length(krbContext, ctx->checksumType,
&checksumSize);
code = krb5_c_checksum_length(krbContext, ctx->checksumType,
&checksumSize);
+#endif
if (code != 0)
goto cleanup;
if (code != 0)
goto cleanup;