variables which are no longer used.
recvauth.c: Removed the global extern of krb5_kdc_default_options,
which wasn't being used anyway.
mk_req.c (krb5_mk_req): Replace use of krb5_kdc_default_options with
context->kdc_default_options.
gc_frm_kdc.c: Remove the global extern of krb5_kdc_req_sumtype, which
wasn't being used anymore anyway.
send_tgs.c (krb5_send_tgs_basic): Remove use of the global variable
krb5_kdc_req_sumtype, and use the kdc_req_sumtype in the context
structure instead.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7291
dc483132-0cff-0310-8789-
dd5450dbe970
Wed Jan 10 21:01:36 1996 Theodore Y. Ts'o <tytso@dcl>
+ * krbconfig.c, Makefile.in: Removed krbconfig.c; it contained
+ global variables which are no longer used.
+
+ * recvauth.c: Removed the global extern of
+ krb5_kdc_default_options, which wasn't being used anyway.
+
+ * mk_req.c (krb5_mk_req): Replace use of krb5_kdc_default_options
+ with context->kdc_default_options.
+
+ * gc_frm_kdc.c: Remove the global extern of krb5_kdc_req_sumtype,
+ which wasn't being used anymore anyway.
+
+ * send_tgs.c (krb5_send_tgs_basic): Remove use of the global
+ variable krb5_kdc_req_sumtype, and use the kdc_req_sumtype
+ in the context structure instead.
+
* walk_rtree.c (krb5_walk_realm_tree): Applied patch submitted by
Doug Engbert, so that the configurable authentication
patch takes into account the null entry at the end of the
in_tkt_sky.$(OBJEXT) \
init_ctx.$(OBJEXT) \
kdc_rep_dc.$(OBJEXT) \
- krbconfig.$(OBJEXT) \
mk_cred.$(OBJEXT) \
mk_error.$(OBJEXT) \
mk_priv.$(OBJEXT) \
$(srcdir)/in_tkt_sky.c \
$(srcdir)/init_ctx.c \
$(srcdir)/kdc_rep_dc.c \
- $(srcdir)/krbconfig.c \
$(srcdir)/mk_cred.c \
$(srcdir)/mk_error.c \
$(srcdir)/mk_priv.c \
* returns errors, system errors.
*/
-extern krb5_cksumtype krb5_kdc_req_sumtype;
-
/* helper macro: convert flags to necessary KDC options */
#define FLAGS2OPTS(flags) (flags & KDC_TKT_COMMON_MASK)
returns system errors
*/
-extern krb5_flags krb5_kdc_default_options;
-
krb5_error_code
krb5_mk_req(context, auth_context, ap_req_options, service, hostname, in_data,
ccache, outbuf)
if ((retval = krb5_cc_get_principal(context, ccache, &creds.client)))
goto cleanup_creds;
- if ((retval = krb5_get_credentials(context, krb5_kdc_default_options,
+ if ((retval = krb5_get_credentials(context, context->kdc_default_options,
ccache, &creds, &credsp)))
goto cleanup_creds;
#include <stdio.h>
#include <string.h>
-extern krb5_flags krb5_kdc_default_options;
-
static char *sendauth_version = "KRB5_SENDAUTH_V1.0";
krb5_error_code
returns system errors
*/
-extern krb5_cksumtype krb5_kdc_req_sumtype;
-
static krb5_error_code
krb5_send_tgs_basic(context, in_data, in_cred, outbuf)
krb5_context context;
/* Generate checksum */
if ((checksum.contents = (krb5_octet *)
- malloc(krb5_checksum_size(context, krb5_kdc_req_sumtype))) == NULL)
+ malloc(krb5_checksum_size(context,
+ context->kdc_req_sumtype))) == NULL)
return(ENOMEM);
- if ((retval = krb5_calculate_checksum(context, krb5_kdc_req_sumtype,
+ if ((retval = krb5_calculate_checksum(context, context->kdc_req_sumtype,
in_data->data, in_data->length,
(krb5_pointer) in_cred->keyblock.contents,
in_cred->keyblock.length,
#define WORKING_RCACHE
-extern krb5_flags krb5_kdc_default_options;
-
static char *sendauth_version = "KRB5_SENDAUTH_V1.0";
krb5_error_code
krb5_ap_rep_enc_part ** rep_result;
krb5_creds ** out_creds;
{
- krb5_flags kdc_options = krb5_kdc_default_options;
krb5_octet result;
krb5_creds creds;
krb5_creds * credsp = NULL;
in_creds = &creds;
}
if (!in_creds->ticket.length) {
- if ((retval = krb5_get_credentials(context, kdc_options,
+ if ((retval = krb5_get_credentials(context,
+ context->kdc_default_options,
use_ccache, in_creds, &credsp)))
goto error_return;
credspout = credsp;