From e8bb38e6ba521d718ee12bbc1af2a50bf1d453ec Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 16 Nov 1997 09:25:07 +0000 Subject: [PATCH] updated to new krb5 function prototypes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4019 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/init_sec_context.c | 15 +++++++++++++++ lib/gssapi/krb5/init_sec_context.c | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/lib/gssapi/init_sec_context.c b/lib/gssapi/init_sec_context.c index 6824132cf..59d02c7fd 100644 --- a/lib/gssapi/init_sec_context.c +++ b/lib/gssapi/init_sec_context.c @@ -67,6 +67,7 @@ init_auth Authenticator *auth; krb5_data authenticator; Checksum cksum; + krb5_enctype enctype; gssapi_krb5_init (); @@ -186,8 +187,21 @@ init_auth goto failure; } + if ((*context_handle)->auth_context->enctype) + enctype = (*context_handle)->auth_context->enctype; + else { + kret = krb5_keytype_to_etype(gssapi_krb5_context, + (*context_handle)->auth_context->keyblock->keytype, + &enctype); + if (kret) + return kret; + } + + + kret = krb5_build_authenticator (gssapi_krb5_context, (*context_handle)->auth_context, + enctype, cred, &cksum, &auth, @@ -199,6 +213,7 @@ init_auth } kret = krb5_build_ap_req (gssapi_krb5_context, + enctype, cred, ap_options, authenticator, diff --git a/lib/gssapi/krb5/init_sec_context.c b/lib/gssapi/krb5/init_sec_context.c index 6824132cf..59d02c7fd 100644 --- a/lib/gssapi/krb5/init_sec_context.c +++ b/lib/gssapi/krb5/init_sec_context.c @@ -67,6 +67,7 @@ init_auth Authenticator *auth; krb5_data authenticator; Checksum cksum; + krb5_enctype enctype; gssapi_krb5_init (); @@ -186,8 +187,21 @@ init_auth goto failure; } + if ((*context_handle)->auth_context->enctype) + enctype = (*context_handle)->auth_context->enctype; + else { + kret = krb5_keytype_to_etype(gssapi_krb5_context, + (*context_handle)->auth_context->keyblock->keytype, + &enctype); + if (kret) + return kret; + } + + + kret = krb5_build_authenticator (gssapi_krb5_context, (*context_handle)->auth_context, + enctype, cred, &cksum, &auth, @@ -199,6 +213,7 @@ init_auth } kret = krb5_build_ap_req (gssapi_krb5_context, + enctype, cred, ap_options, authenticator,