From 43ec74b9f4eca959cee309c3698c58ed3cddc350 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 7 Jul 1997 09:45:20 +0000 Subject: [PATCH] fix krb5_encrypt calls git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2012 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/build_auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/krb5/build_auth.c b/lib/krb5/build_auth.c index ba2df77b5..271b9bdf3 100644 --- a/lib/krb5/build_auth.c +++ b/lib/krb5/build_auth.c @@ -13,7 +13,7 @@ krb5_build_authenticator (krb5_context context, struct timeval tv; Authenticator *auth = malloc(sizeof(*auth)); char buf[1024]; - int len; + size_t len; krb5_error_code ret; int32_t seq_number; @@ -53,7 +53,9 @@ krb5_build_authenticator (krb5_context context, memset (buf, 0, sizeof(buf)); ret = encode_Authenticator (buf + sizeof(buf) - 1, sizeof(buf), auth, &len); - ret = krb5_encrypt (context, buf + sizeof(buf) - len, len, &cred->session, + ret = krb5_encrypt (context, buf + sizeof(buf) - len, len, + auth_context->enctype, + &cred->session, result); if (auth_result)