diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2003-12-19 05:29:32 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2003-12-19 05:29:32 +0000 |
commit | 86b1b4c9850e374d67c59b6f88933c26c2412eb1 (patch) | |
tree | 6bc6852c6ade78c78a4e55c6cb85a1cc8fe47a1f /src/lib/gssapi/krb5/init_sec_context.c | |
parent | fc89820304dc65798949610f898ddc747c7222c3 (diff) | |
download | krb5-86b1b4c9850e374d67c59b6f88933c26c2412eb1.zip krb5-86b1b4c9850e374d67c59b6f88933c26c2412eb1.tar.gz krb5-86b1b4c9850e374d67c59b6f88933c26c2412eb1.tar.bz2 |
The new functions krb5int_c_mandatory_cksumtype, krb5_ser_pack_int64,
and krb5_ser_unpack_int64 are considered private. Therefore, in order
for them to be used from within gssapi they must be added to the
krb5int_accessor mechanism. This allows us to not publicize their
existence via exportation on Windows or MacOSX.
ticket: new
tags: pullup
target_version: 1.3.2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15941 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/krb5/init_sec_context.c')
-rw-r--r-- | src/lib/gssapi/krb5/init_sec_context.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index 102ffda..cadfee8 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -333,6 +333,11 @@ setup_enc( { krb5_error_code code; int i; + krb5int_access kaccess; + + code = krb5int_accessor (&kaccess, KRB5INT_ACCESS_VERSION); + if (code) + goto fail; ctx->have_acceptor_subkey = 0; ctx->proto = 0; @@ -390,7 +395,7 @@ setup_enc( ctx->sealalg = -10; ctx->proto = 1; - code = krb5int_c_mandatory_cksumtype(context, ctx->subkey->enctype, + code = (*kaccess.krb5int_c_mandatory_cksumtype)(context, ctx->subkey->enctype, &ctx->cksumtype); if (code) goto fail; @@ -430,7 +435,6 @@ new_connection( { OM_uint32 major_status; krb5_error_code code; - krb5_enctype *requested_enctypes; krb5_creds *k_cred; krb5_gss_ctx_id_rec *ctx, *ctx_free; krb5_timestamp now; @@ -681,6 +685,11 @@ mutual_auth( krb5_gss_ctx_id_rec *ctx; krb5_error *krb_error; krb5_error_code code; + krb5int_access kaccess; + + code = krb5int_accessor (&kaccess, KRB5INT_ACCESS_VERSION); + if (code) + goto fail; major_status = GSS_S_FAILURE; @@ -782,7 +791,7 @@ mutual_auth( &ctx->acceptor_subkey); if (code) goto fail; - code = krb5int_c_mandatory_cksumtype(context, + code = (*kaccess.krb5int_c_mandatory_cksumtype)(context, ctx->acceptor_subkey->enctype, &ctx->acceptor_subkey_cksumtype); if (code) |